From 5d9df0ec82483a546ba73354c020e6a4d0010e61 Mon Sep 17 00:00:00 2001 From: Thorben Grove Date: Fri, 15 Dec 2023 15:30:37 +0100 Subject: [PATCH] floor seconds --- src/widgets/fritzbox/component.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/fritzbox/component.jsx b/src/widgets/fritzbox/component.jsx index 2e12c235..b1df3a7b 100644 --- a/src/widgets/fritzbox/component.jsx +++ b/src/widgets/fritzbox/component.jsx @@ -10,7 +10,7 @@ const formatUptime = (timestamp) => { const days = Math.floor(timestamp / (3600 * 24)); const hours = Math.floor((timestamp % (3600 * 24)) / 3600); const minutes = Math.floor((timestamp % 3600) / 60); - const seconds = timestamp % 60; + const seconds = Math.floor(timestamp % 60); const format = (num) => String(num).padStart(2, "0"); let uptimeStr = "";