Skip to content

Commit fe804cd

Browse files
Stefan-Rasplbonzini
authored andcommitted
tools/kvm_stat: cut down decimal places in update interval dialog
We currently display the default number of decimal places for floats in _show_set_update_interval(), which is quite pointless. Cutting down to a single decimal place. Signed-off-by: Stefan Raspl <raspl@linux.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent 62cf9bd commit fe804cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tools/kvm/kvm_stat/kvm_stat‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1325,7 +1325,7 @@ class Tui(object):
13251325
msg = ''
13261326
while True:
13271327
self.screen.erase()
1328-
self.screen.addstr(0, 0, 'Set update interval (defaults to %fs).' %
1328+
self.screen.addstr(0, 0, 'Set update interval (defaults to %.1fs).' %
13291329
DELAY_DEFAULT, curses.A_BOLD)
13301330
self.screen.addstr(4, 0, msg)
13311331
self.screen.addstr(2, 0, 'Change delay from %.1fs to ' %

0 commit comments

Comments
 (0)