mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 00:28:42 +00:00
Dan Connelly points out that it should be "n * (n + 1) / 2" (plus, not minus).
This commit is contained in:
@@ -225,7 +225,7 @@ CpintPlot::calculate(QString fileName, QDateTime dateTime)
|
||||
RideFileFactory::instance().openRideFile(file, errors);
|
||||
assert(rideFile);
|
||||
double x = rideFile->dataPoints().size();
|
||||
progress_max += x * (x - 1.0) / 2.0;
|
||||
progress_max += x * (x + 1.0) / 2.0;
|
||||
delete rideFile;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user