diff --git a/contentScript.js b/contentScript.js index 14fc67f..7036989 100644 --- a/contentScript.js +++ b/contentScript.js @@ -395,8 +395,9 @@ if (typeof Overlay === "undefined") { } // Post-warmup - const trainedMinutes = minutes - warmupMin; - const postWarmup = Math.round((cpm * (trainedMinutes + (seconds / 60)))); + const trainedMinutes = Math.min(minutes - warmupMin); + const trainedSeconds = minutes >= warmupMin ? seconds : 0; + const postWarmup = Math.round((cpm * (trainedMinutes + (trainedSeconds / 60)))); // Sum return Math.round(preWarmup + postWarmup);