Browse Source

Warmup fix.

master
Stian Aune 5 years ago
parent
commit
556d8302d4
  1. 5
      contentScript.js

5
contentScript.js

@ -395,8 +395,9 @@ if (typeof Overlay === "undefined") {
} }
// Post-warmup // 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 // Sum
return Math.round(preWarmup + postWarmup); return Math.round(preWarmup + postWarmup);

Loading…
Cancel
Save