Skip to content

Commit

Permalink
fix: make all charts default to one comma precision
Browse files Browse the repository at this point in the history
  • Loading branch information
MauriceNino committed Jun 28, 2022
1 parent fecb1b7 commit ac7c99e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/view/src/widgets/cpu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export const CpuChart: FC<CpuChartProps> = ({
<Tooltip
content={x => (
<ThemedText>
{(x.payload?.[0]?.value as number)?.toFixed(2)} %
{(x.payload?.[0]?.value as number)?.toFixed(1)} %
</ThemedText>
)}
/>
Expand Down
2 changes: 1 addition & 1 deletion apps/view/src/widgets/ram.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const RamChart: FC<RamChartProps> = ({
<Tooltip
content={x => (
<ThemedText>
{(x.payload?.[0]?.value as number)?.toFixed(2)} %
{(x.payload?.[0]?.value as number)?.toFixed(1)} %
</ThemedText>
)}
/>
Expand Down

0 comments on commit ac7c99e

Please sign in to comment.