Correct bug in the peakPowerHr formula

This commit is contained in:
Damien
2011-08-09 18:48:53 +02:00
committed by Gareth Coco
parent b7bfb98dc8
commit 5b838d99c2

View File

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