Skip to content

Commit

Permalink
Merge pull request #44 from yihong0618/master
Browse files Browse the repository at this point in the history
fix: 60 seconds show bug
  • Loading branch information
flopp authored Jul 15, 2020
2 parents ee1d76a + c49c7e9 commit 751f992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ var App = {
format_pace: function (d) {
const pace = (1000.0 / 60.0) * (1.0 / d);
const minutes = Math.floor(pace);
const seconds = (pace - minutes) * 60.0;
const seconds = Math.floor((pace - minutes) * 60.0);
return `${minutes}:${seconds.toFixed(0).toString().padStart(2, "0")} min/km`;
},

Expand Down

0 comments on commit 751f992

Please sign in to comment.