Fix uptimes returning with everything in days
This commit is contained in:
parent
ada0848db0
commit
88ac2d4ab0
|
@ -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}`;
|
||||
}
|
||||
|
|
Reference in New Issue