diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-05-29 10:45:53 +0200 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-05-29 10:45:53 +0200 |
commit | 2563b4dae8314fb4c155c7b9705e44fd8a936c1a (patch) | |
tree | fa42b0198ca493512a3877becee39579813487ae /ifpps.c | |
parent | 71e35a85995efd9f5fbdc0ef9cd7b013389f4727 (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>
Diffstat (limited to 'ifpps.c')
-rw-r--r-- | ifpps.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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, |