[common] runningavg: avoid integer overflows
We receive values as int64_t, but when we compute the sum, we store it as int. This doesn't make sense as we eventually cast it to double when computing the average. We should instead store the sum as int64_t.
Please register or sign in to comment