diff options
author | Stefan Raspl <raspl@linux.vnet.ibm.com> | 2017-06-07 21:08:26 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-06-08 18:13:23 +0200 |
commit | 124c2fc9fdf5fb1d9cea4707d7e5471e317ba3bf (patch) | |
tree | e2551445b4cd606a2446835a0d37300eec96f212 /crypto/kpp.c | |
parent | 773bffeeb2f1fca7739516d0a5a814dd14a5cc83 (diff) | |
download | talos-obmc-linux-124c2fc9fdf5fb1d9cea4707d7e5471e317ba3bf.tar.gz talos-obmc-linux-124c2fc9fdf5fb1d9cea4707d7e5471e317ba3bf.zip |
tools/kvm_stat: fix event counts display for interrupted intervals
When an update interval is interrupted via key press (e.g. space), the
'Current' column value is calculated using the full interval length
instead of the elapsed time, which leads to lower than actual numbers.
Furthermore, the value should be rounded, not truncated.
This is fixed by using the actual elapsed time for the calculation.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'crypto/kpp.c')
0 files changed, 0 insertions, 0 deletions