floor seconds
This commit is contained in:
parent
c5eb7c4127
commit
5d9df0ec82
@ -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 = "";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user