diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2013-07-10 22:26:42 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2013-07-10 22:26:42 +0200 |
commit | 7ebae5df505c81dcfe61fbe86f2af38adf5b52b0 (patch) | |
tree | 1c40e87eea63eb2db2cbcc67cf2e6824cd6e46db /ifpps.c | |
parent | 59b7a4e868188f2fe7cbbf303da0fb826b78cc8e (diff) |
ifpps: Reduce default number of top hitter CPUs to 5
Since we now also display the average (and in the future possibly also
the standard deviation), reduce the default number of CPUs displayed to
5, to keep terminal space usage low.
Suggested-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'ifpps.c')
-rw-r--r-- | ifpps.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -112,7 +112,7 @@ static void __noreturn help(void) " -d|--dev <netdev> Device to fetch statistics for e.g., eth0\n" " -t|--interval <time> Refresh time in ms (default 1000 ms)\n" " -n|--num-cpus <num> Number of top hitter CPUs to display\n" - " in ncurses mode (default 10)\n" + " in ncurses mode (default 5)\n" " -p|--promisc Promiscuous mode\n" " -c|--csv Output to terminal as Gnuplot-ready data\n" " -l|--loop Continuous CSV output\n" @@ -1160,7 +1160,7 @@ int main(int argc, char **argv) { short ifflags = 0; int c, opt_index, ret, cpus, promisc = 0; - unsigned int top_cpus = 10; + unsigned int top_cpus = 5; uint64_t interval = 1000; char *ifname = NULL; int (*func_main)(const char *ifname, uint64_t ms_interval, |