From e1ddeffd7f781bcb7e32775ee1dc67ff29224157 Mon Sep 17 00:00:00 2001 From: Ale Martinez Date: Fri, 19 Jul 2019 10:29:09 -0300 Subject: [PATCH] Banister - fixed score accumulation for multiple activities per day It was notable when a second activy has score=0, s.t. a transition run, provoked the score for the day to go to zero. --- src/Metrics/Banister.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Metrics/Banister.cpp b/src/Metrics/Banister.cpp index b421c3089..5b46d4c77 100644 --- a/src/Metrics/Banister.cpp +++ b/src/Metrics/Banister.cpp @@ -272,7 +272,7 @@ Banister::refresh() // load measure double score = item->getForSymbol(symbol); long day = item->dateTime.date().toJulianDay() - start.toJulianDay(); - data[day].score = score; + data[day].score += score; // average out measures if (score>0) {