Fix boundary condition in Estimator

Last activity is not considered when it starts a new 7 day period.
Fixes #4220
This commit is contained in:
Alejandro Martinez
2022-05-13 20:58:28 -03:00
parent 9b29fb2f8d
commit e97034fb7d

View File

@@ -232,7 +232,7 @@ Estimator::run()
// from has first ride with Power data / looking at the next 7 days of data with Power
// calculate Estimates for all data per week including the week of the last Power recording
QDate date = from;
while (date < to) {
while (date <= to) {
// check if we've been asked to stop
if (abort == true) {