From: Stefan Raspl Date: Tue, 25 Sep 2018 07:19:36 +0000 (+0200) Subject: tools/kvm_stat: cut down decimal places in update interval dialog X-Git-Tag: v4.19~37^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fe804cd6774938814242aa67bb7e7cbc934b1203;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Paolo Bonzini --- diff --git a/tools/kvm/kvm_stat/kvm_stat b/tools/kvm/kvm_stat/kvm_stat index 439b8a2..195ba48 100755 --- a/tools/kvm/kvm_stat/kvm_stat +++ b/tools/kvm/kvm_stat/kvm_stat @@ -1325,7 +1325,7 @@ class Tui(object): msg = '' while True: self.screen.erase() - self.screen.addstr(0, 0, 'Set update interval (defaults to %fs).' % + self.screen.addstr(0, 0, 'Set update interval (defaults to %.1fs).' % DELAY_DEFAULT, curses.A_BOLD) self.screen.addstr(4, 0, msg) self.screen.addstr(2, 0, 'Change delay from %.1fs to ' %