wmnet: increase polling delay to 0.1 sec and maxrate to 120kb
This commit is contained in:
parent
49944a01ae
commit
8345c9ca76
|
@ -295,7 +295,7 @@ void setup_wmnet(int argc, char **argv) {
|
|||
" -n, --normalstate start up in normal, shaped state\n"
|
||||
" -t, --txcolor=COLOR color for tx\n"
|
||||
" -r, --rxcolor=COLOR color for rx\n"
|
||||
" -x, --maxrate=BYTES max transfer rate for graph scale (default 6000)\n"
|
||||
" -x, --maxrate=BYTES max transfer rate for graph scale (default 120000)\n"
|
||||
" -p, --promisc=DEVICE put DEVICE into promiscuous mode to apply\n"
|
||||
" accounting rules to all network packets\n"
|
||||
" -u, --unpromisc=DEVICE turn off promiscuous mode on DEVICE\n"
|
||||
|
@ -303,7 +303,7 @@ void setup_wmnet(int argc, char **argv) {
|
|||
" -l, --logscale use a logarithmic scale (great for ethernet\n"
|
||||
" connections with -x 10000000)\n"
|
||||
" -d DELAY delay time for polling statistics\n"
|
||||
" in microseconds (default 25000)\n"
|
||||
" in microseconds (default 100000)\n"
|
||||
"\n");
|
||||
printf("Compiled in drivers: [%s]\n\n", available_drivers());
|
||||
printf("Report bugs to joff@iastate.edu\n");
|
||||
|
|
|
@ -78,7 +78,7 @@ struct timeval timenow, timelast;
|
|||
unsigned long long int totalbytes_in, totalbytes_out, lastbytes_in, lastbytes_out;
|
||||
unsigned long long int totalpackets_in, totalpackets_out, lastpackets_in, lastpackets_out;
|
||||
unsigned int diffbytes_in, diffbytes_out;
|
||||
unsigned int delayTime = 25000, displayDelay = 55000, maxRate = 6000;
|
||||
unsigned int delayTime = 100000, displayDelay = 55000, maxRate = 120000;
|
||||
unsigned int out_rule = 2, in_rule = 1, graphbox_height = 44; /* number of rule in /proc/net/ip_acct to use */
|
||||
char *in_rule_string = NULL, *out_rule_string = NULL, *device=NULL;
|
||||
Bool current_tx = False, current_rx = False, rx, tx, logscale = False;
|
||||
|
|
Loading…
Reference in a new issue