summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-05-29 10:45:53 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-05-29 10:45:53 +0200
commit2563b4dae8314fb4c155c7b9705e44fd8a936c1a (patch)
treefa42b0198ca493512a3877becee39579813487ae
parent71e35a85995efd9f5fbdc0ef9cd7b013389f4727 (diff)
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 <dborkman@redhat.com>
-rw-r--r--ifpps.c4
1 files changed, 2 insertions, 2 deletions
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,