Skip to content

Commit

Permalink
Banister - fixed score accumulation for multiple activities per day
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
amtriathlon committed Jul 19, 2019
1 parent f83a367 commit e1ddeff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Metrics/Banister.cpp
Expand Up @@ -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) {
Expand Down

0 comments on commit e1ddeff

Please sign in to comment.