From 75934a6d3b28e653ab06c631c8af17c2e5765fa2 Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Sun, 9 Jun 2013 12:47:59 +0200 Subject: ifpps: minor: fix ncurses alignment Since we've added '+'/'-' for max/min CPU values, we also need to shift once whitespace to the left to properly align ncurses display again. Signed-off-by: Daniel Borkmann --- ifpps.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ifpps.c') diff --git a/ifpps.c b/ifpps.c index 53e61aa..ed0634a 100644 --- a/ifpps.c +++ b/ifpps.c @@ -764,7 +764,7 @@ static void screen_percpu_states_one(WINDOW *screen, const struct ifstat *rel, rel->cpu_idle[idx] + rel->cpu_iow[idx]; mvwprintw(screen, (*voff)++, 2, - "cpu%*d%s:%s %13.1lf%% usr/t " + "cpu%*d%s:%s %12.1lf%% usr/t " "%9.1lf%% sys/t " "%10.1lf%% idl/t " "%11.1lf%% iow/t ", max_padd, idx, @@ -805,7 +805,7 @@ static void screen_percpu_irqs_rel_one(WINDOW *screen, const struct ifstat *rel, int max_padd = padding_from_num(get_number_cpus()); mvwprintw(screen, (*voff)++, 2, - "cpu%*d%s:%s %14llu irqs/t " + "cpu%*d%s:%s %13llu irqs/t " "%15llu sirq rx/t " "%15llu sirq tx/t ", max_padd, idx, tag, strlen(tag) == 0 ? " " : "", @@ -838,7 +838,7 @@ static void screen_percpu_irqs_abs_one(WINDOW *screen, const struct ifstat *abs, int max_padd = padding_from_num(get_number_cpus()); mvwprintw(screen, (*voff)++, 2, - "cpu%*d%s:%s %14llu irqs", max_padd, idx, + "cpu%*d%s:%s %13llu irqs", max_padd, idx, tag, strlen(tag) == 0 ? " " : "", abs->irqs[idx]); } -- cgit v1.2.3-54-g00ecf