Skip to content

Commit

Permalink
fix rounding issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-james-watson committed Sep 21, 2018
1 parent 628fe9f commit 065be3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/index.js
Expand Up @@ -41,8 +41,8 @@ async function runBenchmark() {
alert('Test failed - results not equal')
}

document.getElementById("c-result").innerHTML = `${cDuration}ms`
document.getElementById("js-result").innerHTML = `${jsDuration}ms`
document.getElementById("c-result").innerHTML = `${Math.round(cDuration)}ms`
document.getElementById("js-result").innerHTML = `${Math.round(jsDuration)}ms`

document.getElementById("run").disabled = false
document.getElementById("run").innerHTML = 'Run'
Expand Down

0 comments on commit 065be3f

Please sign in to comment.