From 4cb1fcdb219e7f0fb1a354321b4db94ec808c3f8 Mon Sep 17 00:00:00 2001 From: snowykami Date: Fri, 4 Oct 2024 07:46:00 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server_status/api.py b/server_status/api.py index 371e64d..bf26bd8 100644 --- a/server_status/api.py +++ b/server_status/api.py @@ -136,7 +136,7 @@ class Client: self.link = link self.interval = interval - self.start_time = int(psutil.boot_time()) + self.start_time = psutil.boot_time() self.hardware = Hardware() log("Client initialized", @@ -188,7 +188,7 @@ class Client: "labels": self.labels, "location": self.location, "uptime": int(time.time() - self.start_time), - "start_time": self.start_time, # 系统启动的时间 + "start_time": int(self.start_time), # 系统启动的时间 "link": self.link, "observed_at": int(time.time()), },