Skip to content

Commit cdd1392

Browse files
committed
fix(logs): format duration in log details panel
1 parent b0457bc commit cdd1392

File tree

1 file changed

+2
-1
lines changed
  • apps/sim/app/workspace/[workspaceId]/logs/components/log-details

1 file changed

+2
-1
lines changed

apps/sim/app/workspace/[workspaceId]/logs/components/log-details/log-details.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import {
1818
import { ScrollArea } from '@/components/ui/scroll-area'
1919
import { BASE_EXECUTION_CHARGE } from '@/lib/billing/constants'
2020
import { cn } from '@/lib/core/utils/cn'
21+
import { formatDuration } from '@/lib/core/utils/formatting'
2122
import { filterHiddenOutputKeys } from '@/lib/logs/execution/trace-spans/trace-spans'
2223
import {
2324
ExecutionSnapshot,
@@ -453,7 +454,7 @@ export const LogDetails = memo(function LogDetails({
453454
Duration
454455
</span>
455456
<span className='font-medium text-[13px] text-[var(--text-secondary)]'>
456-
{log.duration || '—'}
457+
{formatDuration(log.duration, { precision: 2 }) || '—'}
457458
</span>
458459
</div>
459460

0 commit comments

Comments
 (0)