From 3aa9a6d5f30592a02681bc0f5d3074cb01ddbfd5 Mon Sep 17 00:00:00 2001 From: Thomas Guettler Date: Sat, 17 Sep 2011 22:00:27 +0200 Subject: [PATCH] Right-justify the header so that numbers stop "bouncing". --- iotop/ui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iotop/ui.py b/iotop/ui.py index 39b6fef..ef2b3a6 100644 --- a/iotop/ui.py +++ b/iotop/ui.py @@ -398,8 +398,8 @@ class IOTopUI(object): def refresh_display(self, first_time, total_read, total_write, duration): summary = 'Total DISK READ: %s | Total DISK WRITE: %s' % ( - format_bandwidth(self.options, total_read, duration), - format_bandwidth(self.options, total_write, duration)) + format_bandwidth(self.options, total_read, duration).rjust(14), + format_bandwidth(self.options, total_write, duration).rjust(14)) if self.options.processes: pid = ' PID' else: -- 2.11.4.GIT