From e97034fb7d663c7c3ee70fd070bfc0523bb0dfa6 Mon Sep 17 00:00:00 2001 From: Alejandro Martinez Date: Fri, 13 May 2022 20:58:28 -0300 Subject: [PATCH] Fix boundary condition in Estimator Last activity is not considered when it starts a new 7 day period. Fixes #4220 --- src/Metrics/Estimator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Metrics/Estimator.cpp b/src/Metrics/Estimator.cpp index 51c99f960..428b21c1d 100644 --- a/src/Metrics/Estimator.cpp +++ b/src/Metrics/Estimator.cpp @@ -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) {