Replace toRelative with toHuman

Signed-off-by: yubiuser <github@yubiuser.dev>
This commit is contained in:
yubiuser
2025-11-09 13:08:09 +01:00
committed by Adam Warner
parent 2b5df96028
commit f34135b47f
5 changed files with 75 additions and 5 deletions

View File

@@ -377,13 +377,13 @@ function updateSystemInfo() {
$("#status").prop(
"title",
"System uptime: " +
luxon.Duration.fromMillis(1000 * system.uptime).toRelative() +
luxon.Duration.fromMillis(1000 * system.uptime).toHuman({smallestUnit: "seconds", maxUnits: 2, stripZeroUnits: "all"}) +
" (running since " +
startdate +
")"
);
$("#sysinfo-uptime").text(
luxon.Duration.fromMillis(1000 * system.uptime).toRelative() + " (running since " + startdate + ")"
luxon.Duration.fromMillis(1000 * system.uptime).toHuman({smallestUnit: "seconds", maxUnits: 2, stripZeroUnits: "all"}) + " (running since " + startdate + ")"
);
$("#sysinfo-system-overlay").hide();