Skip to content

Commit

Permalink
fix: round up the values of latency on report pages. (#573)
Browse files Browse the repository at this point in the history
  • Loading branch information
shikouchen authored Apr 17, 2022
1 parent 681c747 commit e7216eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/src/features/redux/selectors/reportsSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ function buildAggregateReportData(reports, withPrefix, startFromZeroTime, lastBe
const timeMills = time.getTime();
latencyGraph.push({
name: `${dateFormat(time, 'h:MM:ss')}`,
[`${prefix}median`]: latency.median,
[`${prefix}p95`]: latency.p95,
[`${prefix}p99`]: latency.p99,
[`${prefix}median`]: latency.median.toFixed(),
[`${prefix}p95`]: latency.p95.toFixed(),
[`${prefix}p99`]: latency.p99.toFixed(),
...lastBenchmark.latency,
timeMills
});
Expand Down

0 comments on commit e7216eb

Please sign in to comment.