summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Raspl <stefan.raspl@de.ibm.com>2018-09-25 09:19:36 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2018-10-01 15:40:59 +0200
commitfe804cd6774938814242aa67bb7e7cbc934b1203 (patch)
tree0915a9f3bcf0039acf13762023a3e53c21eabf0e
parent62cf9bd8118c4009f02c477ef78c723f49e53e16 (diff)
downloadlinux-fe804cd6774938814242aa67bb7e7cbc934b1203.tar.gz
linux-fe804cd6774938814242aa67bb7e7cbc934b1203.tar.bz2
linux-fe804cd6774938814242aa67bb7e7cbc934b1203.zip
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>
-rwxr-xr-xtools/kvm/kvm_stat/kvm_stat2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/kvm/kvm_stat/kvm_stat b/tools/kvm/kvm_stat/kvm_stat
index 439b8a27488d..195ba486640f 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 ' %