From c49c7e92141d98ba6a7423fcc0729e504edb4287 Mon Sep 17 00:00:00 2001 From: yihong0618 Date: Tue, 14 Jul 2020 22:04:12 +0800 Subject: [PATCH] fix: 60 seconds show bug --- web/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app.js b/web/app.js index 4eaa11f..ad50075 100644 --- a/web/app.js +++ b/web/app.js @@ -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`; },