mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-07 08:27:12 +00:00
style(web): always format event row durations in seconds
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
2e3a71862c
commit
bdd109597f
1 changed files with 1 additions and 8 deletions
|
|
@ -298,7 +298,6 @@ function durationBetween(startTs: string | undefined, endTs: string): number {
|
|||
}
|
||||
|
||||
function formatDurationMs(ms: number): string {
|
||||
if (ms < 1000) return `${ms}ms`;
|
||||
return `${(ms / 1000).toFixed(1)}s`;
|
||||
}
|
||||
|
||||
|
|
@ -517,13 +516,7 @@ function EventDetails({ turn, runStart }: { turn: TurnType; runStart: string | u
|
|||
{turn.running
|
||||
? "Running…"
|
||||
: `exit ${turn.exitCode ?? "?"}${
|
||||
turn.durationMs
|
||||
? ` · ${
|
||||
turn.durationMs < 1000
|
||||
? `${turn.durationMs}ms`
|
||||
: `${(turn.durationMs / 1000).toFixed(1)}s`
|
||||
}`
|
||||
: ""
|
||||
turn.durationMs ? ` · ${formatDurationMs(turn.durationMs)}` : ""
|
||||
}`}
|
||||
</DetailField>
|
||||
<DetailField label="Script">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue