Skip to content

Commit 9a7d94f

Browse files
committed
fix: improve formatting of duration to use 1d 10h style
1 parent 89c4b79 commit 9a7d94f

File tree

1 file changed

+3
-1
lines changed
  • plugins/plugin-codeflare-dashboard/src/components/Top

1 file changed

+3
-1
lines changed

Diff for: plugins/plugin-codeflare-dashboard/src/components/Top/index.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,9 @@ export default class NodesDashboard extends React.PureComponent<Props, State> {
321321
</Text>
322322
</Box>
323323
<Box justifyContent="flex-end" marginLeft={2}>
324-
<Text color="cyan">{prettyMillis(Date.now() - group.ctime, { compact: true })}</Text>
324+
<Text color="cyan">
325+
{prettyMillis(Date.now() - group.ctime, { unitCount: 2, secondsDecimalDigits: 0 })}
326+
</Text>
325327
</Box>
326328
</Box>
327329

0 commit comments

Comments
 (0)