diff --git a/contentScript.js b/contentScript.js index 7036989..1fdeb3b 100644 --- a/contentScript.js +++ b/contentScript.js @@ -390,12 +390,12 @@ if (typeof Overlay === "undefined") { if (warmupMin > 0) { // Pre-warmup const warmedUpMinutes = Math.min(minutes, warmupMin); - const warmedUpSeconds = warmedUpMinutes >= warmupMin ? 0 : seconds; + const warmedUpSeconds = minutes >= warmupMin ? 0 : seconds; preWarmup = Math.round((warmupCpm * (warmedUpMinutes + (warmedUpSeconds / 60)))); } // Post-warmup - const trainedMinutes = Math.min(minutes - warmupMin); + const trainedMinutes = Math.min(0, minutes - warmupMin); const trainedSeconds = minutes >= warmupMin ? seconds : 0; const postWarmup = Math.round((cpm * (trainedMinutes + (trainedSeconds / 60))));