mirror of
https://github.com/pi-hole/web.git
synced 2025-12-23 20:28:28 +00:00
Replace toRelative with toHuman
Signed-off-by: yubiuser <github@yubiuser.dev>
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user