forked from Rockachopa/Timmy-time-dashboard
This commit is contained in:
@@ -298,9 +298,9 @@ def get_live_system_status() -> dict[str, Any]:
|
||||
|
||||
# Uptime
|
||||
try:
|
||||
from dashboard.routes.health import _START_TIME
|
||||
from config import APP_START_TIME
|
||||
|
||||
uptime = (datetime.now(UTC) - _START_TIME).total_seconds()
|
||||
uptime = (datetime.now(UTC) - APP_START_TIME).total_seconds()
|
||||
result["uptime_seconds"] = int(uptime)
|
||||
except Exception as exc:
|
||||
logger.debug("Uptime calculation failed: %s", exc)
|
||||
|
||||
Reference in New Issue
Block a user