From 9542cd9be395706f58e0fb5a913ca47ce3a00074 Mon Sep 17 00:00:00 2001 From: Thomas Basler Date: Mon, 20 Jun 2022 20:36:34 +0200 Subject: [PATCH] webapp: fixed uptime display --- webapp/src/components/partials/FirmwareInfo.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/src/components/partials/FirmwareInfo.vue b/webapp/src/components/partials/FirmwareInfo.vue index 3467a90f..e4877778 100644 --- a/webapp/src/components/partials/FirmwareInfo.vue +++ b/webapp/src/components/partials/FirmwareInfo.vue @@ -57,8 +57,8 @@ export default { return (value) => { let days = parseInt(Math.floor(value / 3600 / 24)); let hours = parseInt(Math.floor((value - days * 3600 * 24) / 3600)); - let minutes = parseInt(Math.floor((value - hours * 3600) / 60)); - let seconds = parseInt((value - (hours * 3600 + minutes * 60)) % 60); + let minutes = parseInt(Math.floor((value - days * 3600 * 24 - hours * 3600) / 60)); + let seconds = parseInt((value - days * 3600 * 24 - hours * 3600 + minutes * 60) % 60); let dHours = hours > 9 ? hours : "0" + hours; let dMins = minutes > 9 ? minutes : "0" + minutes;