Skip to content

Commit

Permalink
fix(topsql): short format (#1476)
Browse files Browse the repository at this point in the history
  • Loading branch information
shhdgit authored Feb 7, 2023
1 parent 19e178a commit e19b95f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const formatZero = (v: number) => {
return v
}
const shortFormat = (v: number = 0) => {
return getValueFormat('short')(formatZero(v), 1)
return v && v < 0.1 ? '<0.1' : getValueFormat('short')(formatZero(v), 1)
}
const msFormat = (v: number = 0) => {
return getValueFormat('ms')(formatZero(v), 1)
Expand Down

0 comments on commit e19b95f

Please sign in to comment.