mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 09:33:49 +01:00
Merge pull request #4141 from LJNeon/tformat-fix
API: Remove incorrectly placed 's' in ns.tFormat()
This commit is contained in:
commit
1b329df398
@ -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