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