System page: add last updated time ago (#5195)

This commit is contained in:
James L
2023-01-27 12:20:41 +00:00
committed by GitHub
parent 7926ddd008
commit 11054daebe
3 changed files with 13 additions and 3 deletions

View File

@@ -53,6 +53,7 @@ def stats_init(
"detectors": detectors,
"started": int(time.time()),
"latest_frigate_version": get_latest_version(config),
"last_updated": int(time.time()),
}
return stats_tracking
@@ -244,6 +245,7 @@ def stats_snapshot(
"latest_version": stats_tracking["latest_frigate_version"],
"storage": {},
"temperatures": get_temperatures(),
"last_updated": int(time.time()),
}
for path in [RECORD_DIR, CLIPS_DIR, CACHE_DIR, "/dev/shm"]:

View File

@@ -29,3 +29,4 @@ class StatsTrackingTypes(TypedDict):
detectors: dict[str, ObjectDetectProcess]
started: int
latest_frigate_version: str
last_updated: int