Fix uptimes returning with everything in days

This commit is contained in:
IDeletedSystem64 2022-03-27 20:08:50 -05:00
parent ada0848db0
commit 88ac2d4ab0
1 changed files with 4 additions and 4 deletions

View File

@ -14,10 +14,10 @@ module.exports = {
const minutes = parseInt((totalSeconds % 3600) / 60);
const seconds = parseInt(totalSeconds % 60);
const daystring = days + (days === 1 ? "day" : "days");
const hourstring = hours + (hours === 1 ? "day" : "days");
const minutetring = minutes + (minutes === 1 ? "day" : "days");
const secondstring = seconds + (seconds === 1 ? "day" : "days");
const daystring = days + (days === 1 ? " day" : " days");
const hourstring = hours + (hours === 1 ? " hour" : " hours");
const minutetring = minutes + (minutes === 1 ? " minute" : " minutes");
const secondstring = seconds + (seconds === 1 ? " second" : " seconds");
return `${daystring}**, **${hourstring}**, **${minutetring}**, **${secondstring}`;
}