Skip to content

Commit

Permalink
Fix time precision
Browse files Browse the repository at this point in the history
  • Loading branch information
juberti authored Apr 25, 2024
1 parent 78a003c commit 5d64475
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions website/src/utils/DataGridDefinitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ const columnTTFT = {
minWidth: 0,
maxWidth: 120,
valueFormatter: (p: ValueFormatterParam) =>
p.value.toFixed(2) < 1.0
? p.value.toFixed(2) * 1000 + "ms"
p.value < 1.0
? p.value.toFixed(3) * 1000 + "ms"
: p.value.toFixed(2) + "s",
};

Expand Down Expand Up @@ -115,8 +115,8 @@ const columnTotalTime = {
wrapHeaderText: true,
// valueFormatter: (p: ValueFormatterParam) => p.value.toFixed(2) + "s",
valueFormatter: (p: ValueFormatterParam) =>
p.value.toFixed(2) < 1
? p.value.toFixed(2) * 1000 + "ms"
p.value < 1.0
? p.value.toFixed(3) * 1000 + "ms"
: p.value.toFixed(2) + "s",
sort: "asc",
};
Expand Down

0 comments on commit 5d64475

Please sign in to comment.