Fix session averaging bug discovered when fixing warning. May fix #59.

This commit is contained in:
sawinglogz 2019-05-08 17:08:12 -04:00
parent e67aae78cf
commit 6e6bc81be8

View File

@ -1074,8 +1074,8 @@ void gTTIAChart::afterDraw(QPainter &, gGraph &graph, QRectF rect)
}
break;
case 2:
if (calc.divisor > 0) {
mid = calc.avg_sum / calc.divisor;
if (calc.cnt > 0) {
mid = calc.avg_sum / calc.cnt;
}
break;
}