Skip to content

Commit

Permalink
fix: use proper conversion factor for converting ns to s in chart fun…
Browse files Browse the repository at this point in the history
…ctions
  • Loading branch information
bojand committed May 13, 2020
1 parent 89a5a3a commit b2f6ed2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/ui/src/lib/compareBarChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function createComparisonChart (report1, report2, color1, color2) {
testValue = testValue / divr
}

if (testValue > 1000) {
if (testValue > 1000000000) {
unit = 's'
divr = 1000000000
}
Expand Down
2 changes: 1 addition & 1 deletion web/ui/src/lib/projectChartData.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function createChartData (reports) {
testValue = testValue / divr
}

if (testValue > 1000) {
if (testValue > 1000000000) {
unit = 's'
divr = 1000000000
}
Expand Down

0 comments on commit b2f6ed2

Please sign in to comment.