Эх сурвалжийг харах

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>
Stefan Raspl 6 жил өмнө
parent
commit
fe804cd677

+ 1 - 1
tools/kvm/kvm_stat/kvm_stat

@@ -1325,7 +1325,7 @@ class Tui(object):
         msg = ''
         msg = ''
         while True:
         while True:
             self.screen.erase()
             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)
                                DELAY_DEFAULT, curses.A_BOLD)
             self.screen.addstr(4, 0, msg)
             self.screen.addstr(4, 0, msg)
             self.screen.addstr(2, 0, 'Change delay from %.1fs to ' %
             self.screen.addstr(2, 0, 'Change delay from %.1fs to ' %