mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
DataFilter - Metric aggretation honors AggregateZero and Count
When computing metric averages
This commit is contained in:
@@ -607,7 +607,7 @@ RideCache::getAggregate(QString name, Specification spec, bool useMetricUnits, b
|
||||
|
||||
// get this value
|
||||
double value = item->getForSymbol(name);
|
||||
double count = item->getForSymbol("workout_time"); // for averaging
|
||||
double count = item->getCountForSymbol(name); // for averaging
|
||||
|
||||
// check values are bounded, just in case
|
||||
if (std::isnan(value) || std::isinf(value)) value = 0;
|
||||
|
||||
Reference in New Issue
Block a user