Skip to content

Commit

Permalink
Do not format std value if falsy
Browse files Browse the repository at this point in the history
  • Loading branch information
danmindru committed May 4, 2023
1 parent 735e602 commit 851b955
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/cli/src/output/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ export const renderStatsTable = (

const stats = [
chalk.keyword(getDurationColor(meanValue))(`${formatNumber(meanValue)} ms`),
chalk.keyword(getDurationColor(stdValue))(`${formatNumber(stdValue)} ms`),
stdValue
? chalk.keyword(getDurationColor(stdValue))(
`${formatNumber(stdValue)} ms`
)
: '-',
chalk.keyword(getDurationColor(q5Value))(`${formatNumber(q5Value)} ms`),
chalk.keyword(getDurationColor(q95Value))(`${formatNumber(q95Value)} ms`),
chalk.keyword(getDurationColor(q99Value))(`${formatNumber(q99Value)} ms`)
Expand Down

1 comment on commit 851b955

@vercel
Copy link

@vercel vercel bot commented on 851b955 May 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.