mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 08:08:42 +00:00
Correct bug in the peakPowerHr formula
This commit is contained in:
@@ -310,8 +310,8 @@ class PeakPowerHr : public RideMetric {
|
||||
|
||||
foreach(const RideFilePoint *point, ride->dataPoints()) {
|
||||
if (point->secs >= start && point->secs < stop) {
|
||||
hr = point->hr + (points>0?hr/points:0);
|
||||
points++;
|
||||
hr = (point->hr + (points-1)*hr) / (points);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user