summaryrefslogtreecommitdiff
path: root/ifpps.c
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-06-09 12:47:59 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-06-09 12:49:04 +0200
commit75934a6d3b28e653ab06c631c8af17c2e5765fa2 (patch)
tree1bb7db618fda0007b70dd9f34ee114211466c479 /ifpps.c
parentbc5b7c5999b49353b720fa8ceb3c0542521cab5d (diff)
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 <dborkman@redhat.com>
Diffstat (limited to 'ifpps.c')
-rw-r--r--ifpps.c6
1 files changed, 3 insertions, 3 deletions
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]);
}