floor seconds

This commit is contained in:
Thorben Grove 2023-12-15 15:30:37 +01:00
parent c5eb7c4127
commit 5d9df0ec82

View File

@ -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 = "";