summaryrefslogtreecommitdiff
path: root/ifpps.c
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-07-12 11:37:25 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-07-12 11:37:25 +0200
commitaffa51801095f861aa4d86b67097f1616f653492 (patch)
tree179fa4487ddd20a9274c84fcc45ebab73c3e62cd /ifpps.c
parentb6408785a2db0f8169afaa4a4add0895b660ae1a (diff)
ifpps: median: add whitespace padding in one occurence
Add whitespace padding in one occurence of 'med:' output. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'ifpps.c')
-rw-r--r--ifpps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ifpps.c b/ifpps.c
index 8fc4e92..c9b5de3 100644
--- a/ifpps.c
+++ b/ifpps.c
@@ -870,10 +870,10 @@ static void screen_percpu_states(WINDOW *screen, const struct ifstat *rel,
all = m_cpu_user + m_cpu_sys + m_cpu_nice + m_cpu_idle + m_cpu_iow;
mvwprintw(screen, (*voff)++, 2,
- "med: %14.1lf%% "
+ "med:%*s%14.1lf%% "
"%9.1lf%% "
"%10.1lf%% "
- "%11.1lf%%",
+ "%11.1lf%%", max_padd, "",
100.0 * (m_cpu_user + m_cpu_nice) / all,
100.0 * m_cpu_sys / all,
100.0 * m_cpu_idle /all,