From c5eff698b5b2daf24f06bb8a69fff8a645ffb2b6 Mon Sep 17 00:00:00 2001 From: Stian Aune Date: Thu, 7 Nov 2019 21:40:29 +0100 Subject: [PATCH] Mat max. --- contentScript.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contentScript.js b/contentScript.js index 1fdeb3b..c25b04d 100644 --- a/contentScript.js +++ b/contentScript.js @@ -395,7 +395,7 @@ if (typeof Overlay === "undefined") { } // Post-warmup - const trainedMinutes = Math.min(0, minutes - warmupMin); + const trainedMinutes = Math.max(0, minutes - warmupMin); const trainedSeconds = minutes >= warmupMin ? seconds : 0; const postWarmup = Math.round((cpm * (trainedMinutes + (trainedSeconds / 60))));