Skip to content
  • Quantum's avatar
    [common] runningavg: avoid integer overflows · d385b49f
    Quantum authored
    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.
    d385b49f