mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Fix Weekly Summary Crash
Refactoring of WeeklySummary to use the metricDB (speed optimisation) introduced a bug where the ridefile iterator was erroneously used whilst computing daily averages. This patch fixes this by using the daily iterator instead. Many thanks to John Ehrlinger for identifying, reporting and helping to diagnose this defect.
This commit is contained in:
@@ -216,7 +216,7 @@ WeeklySummaryWindow::refresh()
|
||||
|
||||
// average RI for the day
|
||||
if (dailyRides[day] > 1)
|
||||
dailyRI[day] = ((dailyRI[day] * (dailyRides[i]-1))
|
||||
dailyRI[day] = ((dailyRI[day] * (dailyRides[day]-1))
|
||||
+ metrics.getForSymbol("skiba_relative_intensity")) / dailyRides[day];
|
||||
else
|
||||
dailyRI[day] = metrics.getForSymbol("skiba_relative_intensity");
|
||||
|
||||
Reference in New Issue
Block a user