From 9b5b3cc506a6412343047a2887026315e89c1333 Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Thu, 31 Mar 2022 16:44:39 -0400 Subject: [PATCH] proc_stats: report system uptime in API request Signed-off-by: Eric Callahan --- moonraker/components/proc_stats.py | 1 + 1 file changed, 1 insertion(+) diff --git a/moonraker/components/proc_stats.py b/moonraker/components/proc_stats.py index b848faf..ea62faf 100644 --- a/moonraker/components/proc_stats.py +++ b/moonraker/components/proc_stats.py @@ -115,6 +115,7 @@ class ProcStats: 'cpu_temp': cpu_temp, 'network': self.last_net_stats, 'system_cpu_usage': self.cpu_usage, + 'system_uptime': time.clock_gettime(time.CLOCK_BOOTTIME), 'websocket_connections': websocket_count }