mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-18 21:53:50 +01:00
chore(ns.tFormat): Remove incorrectly placed 's'
This commit is contained in:
parent
b8f8246294
commit
b1c5ddb211
@ -38,15 +38,15 @@ function convertTimeMsToTimeElapsedString(time: number, showMilli = false): stri
|
||||
|
||||
let res = "";
|
||||
if (days > 0) {
|
||||
res += `${days} days `;
|
||||
res += `${days} day${days === 1 ? "" : "s"} `;
|
||||
}
|
||||
if (hours > 0 || (Settings.ShowMiddleNullTimeUnit && res != "")) {
|
||||
res += `${hours} hours `;
|
||||
res += `${hours} hour${hours === 1 ? "" : "s"} `;
|
||||
}
|
||||
if (minutes > 0 || (Settings.ShowMiddleNullTimeUnit && res != "")) {
|
||||
res += `${minutes} minutes `;
|
||||
res += `${minutes} minute${minutes === 1 ? "" : "s"} `;
|
||||
}
|
||||
res += `${seconds} seconds`;
|
||||
res += `${seconds} second${!showMilli && secTruncMinutes === 1 ? "" : "s"}`;
|
||||
|
||||
return res;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user