Fix formatting oopsie

This commit is contained in:
Rory&
2025-12-13 02:47:49 +01:00
parent 5de70ca2c8
commit 1a41d194bf
+7 -7
View File
@@ -71,13 +71,13 @@ export class ElapsedTime {
toString(): string {
// Format: "DD.HH:MM:SS.mmmuuuNNN", with days being optional
const daysPart = this.days > 0 ? `${this.days}.` : "";
const hoursPart = this.hours.toString().padStart(2, "0");
const minutesPart = this.minutes.toString().padStart(2, "0");
const secondsPart = this.seconds.toString().padStart(2, "0");
const millisecondsPart = this.milliseconds.toString().padStart(3, "0");
const microsecondsPart = this.microseconds.toString().padStart(3, "0");
const nanosecondsPart = this.nanoseconds.toString().padStart(3, "0");
const daysPart = Math.floor(this.days) > 0 ? `${Math.floor(this.days)}.` : "";
const hoursPart = Math.floor(this.hours).toString().padStart(2, "0");
const minutesPart = Math.floor(this.minutes).toString().padStart(2, "0");
const secondsPart = Math.floor(this.seconds).toString().padStart(2, "0");
const millisecondsPart = Math.floor(this.milliseconds).toString().padStart(3, "0");
const microsecondsPart = Math.floor(this.microseconds).toString().padStart(3, "0");
const nanosecondsPart = Math.floor(this.nanoseconds).toString().padStart(3, "0");
return `${daysPart}${hoursPart}:${minutesPart}:${secondsPart}.${millisecondsPart}${microsecondsPart}${nanosecondsPart}`;
}