proc_stats: report system uptime in API request

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2022-03-31 16:44:39 -04:00
parent 1968beaa0d
commit 9b5b3cc506
No known key found for this signature in database
GPG Key ID: 7027245FBBDDF59A
1 changed files with 1 additions and 0 deletions

View File

@ -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
}