wmnet: increase polling delay to 0.1 sec and maxrate to 120kb

This commit is contained in:
Carlos R. Mafra 2015-01-11 21:31:40 +00:00
parent 49944a01ae
commit 8345c9ca76
2 changed files with 3 additions and 3 deletions

View file

@ -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");

View file

@ -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;