cloud-hypervisor/virtio-devices
Bo Chen b76d0e8b50 virtio-devices: block: Fix latency counter for average read/write
The cumulative average formula [1] requires to use signed integers
for proper calculations, while calculated result (e.g. cumulative
average) is always positive. This patch reflects the above requirements
in our code.

[1] https://en.wikipedia.org/wiki/Moving_average#Cumulative_average

Fixes: #5745

Signed-off-by: Bo Chen <chen.bo@intel.com>
2023-09-11 23:08:15 +01:00
..
src virtio-devices: block: Fix latency counter for average read/write 2023-09-11 23:08:15 +01:00
Cargo.toml build: Bump vm-memory and its consumers 2023-09-07 11:34:51 -07:00