Browse Source

Mat og min.

master
Stian Aune 5 years ago
parent
commit
b380f64457
  1. 4
      contentScript.js

4
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))));

Loading…
Cancel
Save