style: format watcher elapsed helper

This commit is contained in:
Eyejoker
2026-03-23 05:23:12 +09:00
parent 127eacb564
commit cad6ec309c

View File

@@ -140,7 +140,10 @@ function formatWatchIntervalLabel(
return minutes > 0 ? `${hours}시간 ${minutes}` : `${hours}시간`;
}
function formatElapsedLabel(startedAtIso: string, checkedAtIso: string): string {
function formatElapsedLabel(
startedAtIso: string,
checkedAtIso: string,
): string {
const elapsedMs = Math.max(
0,
new Date(checkedAtIso).getTime() - new Date(startedAtIso).getTime(),