• Marius van der Wijden's avatar
    metrics: zero temp variable in updateMeter (#21470) · 4e54b1a4
    Marius van der Wijden authored
    * metrics: zero temp variable in  updateMeter
    
    Previously the temp variable was not updated properly after summing it to count.
    This meant we had astronomically high metrics, now we zero out the temp whenever we
    sum it onto the snapshot count
    
    * metrics: move temp variable to be aligned, unit tests
    
    Moves the temp variable in MeterSnapshot to be 64-bit aligned because of the atomic bug.
    Adds a unit test, that catches the previous bug.
    4e54b1a4
meter_test.go 1.79 KB