From 3d14b5a18ea620f7e2770cc058827799d0cd8700 Mon Sep 17 00:00:00 2001 From: snowykami Date: Fri, 4 Oct 2024 07:33:16 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E6=B7=BB=E5=8A=A0=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E5=90=AF=E5=8A=A8=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server_status/api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server_status/api.py b/server_status/api.py index 6c44515..69fde76 100644 --- a/server_status/api.py +++ b/server_status/api.py @@ -136,6 +136,7 @@ class Client: self.link = link self.interval = interval + self.start_time = int(time.clock()) self.hardware = Hardware() log("Client initialized", @@ -187,6 +188,7 @@ class Client: "labels": self.labels, "location": self.location, "uptime": int(time.time() - self.start_time), + "start_time": self.start_time, # 系统启动的时间 "link": self.link, "observed_at": int(time.time()), },