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.
This commit is contained in:
Ale Martinez
2019-07-19 10:29:09 -03:00
parent f83a367796
commit e1ddeffd7f

View File

@@ -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) {