mirror of https://github.com/ethereum/go-ethereum
metrics: zero temp variable in updateMeter (#21470)
* 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.pull/21080/head
parent
a70a79b285
commit
4e54b1a45e
Loading…
Reference in new issue