Skip to content

Commit 38e89c3

Browse files
Stefan Rasplbonzini
authored andcommitted
tools/kvm_stat: rename 'Current' column to 'CurAvg/s'
'Current' can be misleading as it doesn't tell whether this is the amount of events in the last interval or the current average per second. Note that this necessitates widening the respective column by one more character. Signed-off-by: Stefan Raspl <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent f6d7531 commit 38e89c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/kvm/kvm_stat/kvm_stat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -981,8 +981,8 @@ class Tui(object):
981981
if len(regex) > MAX_REGEX_LEN:
982982
regex = regex[:MAX_REGEX_LEN] + '...'
983983
self.screen.addstr(1, 17, 'regex filter: {0}'.format(regex))
984-
self.screen.addstr(2, 1, '%-40s %10s%7s %7s' %
985-
('Event', 'Total', '%Total', 'Current'),
984+
self.screen.addstr(2, 1, '%-40s %10s%7s %8s' %
985+
('Event', 'Total', '%Total', 'CurAvg/s'),
986986
curses.A_STANDOUT)
987987
self.screen.addstr(4, 1, 'Collecting data...')
988988
self.screen.refresh()
@@ -1010,7 +1010,7 @@ class Tui(object):
10101010
break
10111011
if values[0] is not None:
10121012
cur = int(round(values[1] / sleeptime)) if values[1] else ''
1013-
self.screen.addstr(row, 1, '%-40s %10d%7.1f %7s' %
1013+
self.screen.addstr(row, 1, '%-40s %10d%7.1f %8s' %
10141014
(key, values[0], values[0] * 100 / total,
10151015
cur))
10161016
row += 1

0 commit comments

Comments
 (0)