From 2563b4dae8314fb4c155c7b9705e44fd8a936c1a Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Wed, 29 May 2013 10:45:53 +0200 Subject: ifpps: also show total number of cpus Just a minor change to also show the total number of cpus in the headline. Signed-off-by: Daniel Borkmann --- ifpps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ifpps.c') diff --git a/ifpps.c b/ifpps.c index c411b3e..448fe01 100644 --- a/ifpps.c +++ b/ifpps.c @@ -625,9 +625,9 @@ static void screen_header(WINDOW *screen, const char *ifname, int *voff, link == 0 ? "no" : "yes"); mvwprintw(screen, (*voff)++, 2, - "Kernel net/sys statistics for %s (%s%s), t=%lums" + "Kernel net/sys statistics for %s (%s%s), t=%lums, cpus=%u" " ", - ifname, drvinf.driver, buff, ms_interval); + ifname, drvinf.driver, buff, ms_interval, get_number_cpus()); } static void screen_net_dev_rel(WINDOW *screen, const struct ifstat *rel, -- cgit v1.2.3-54-g00ecf