This commit is contained in:
xuyue committed 2024-10-09 20:37:23 +08:00
1 parent 63e67c5678
commit ada2aa795a
1 file changed
+1 -1
+1 -1
View File
@@ -71,7 +71,7 @@ export function secondsToDuration(seconds: number): string {
start: 0, start: 0,
end: seconds * 1000, end: seconds * 1000,
}) })
return [duration.hours, duration.minutes, duration.seconds].join(":") return [duration.hours??0, duration.minutes??0, duration.seconds].join(":")
} }
export function submissionMemoryFormat(memory: number | string | undefined) { export function submissionMemoryFormat(memory: number | string | undefined) {