mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Use full path to rate and pass -b option to show the speeds in bits/s rather than byte/s in conformance with the traffic graph metric which is bits/s.
This commit is contained in:
parent
f83fa94292
commit
ef021ff780
@ -30,7 +30,7 @@ $intip = explode (".", $intip);
|
||||
//use class A subnet to make sure we capture all traffic on specified interface
|
||||
$intsubnet = $intip[0] . ".0.0.0/8";
|
||||
|
||||
exec("rate -i {$real_interface} -nlq 1 -Aa 10 -c {$intsubnet} | awk '{ printf \"%s:%s:%s:%s:%s\\n\", $1, $2, $5, $8, $11 }'", $listedIPs);
|
||||
exec("/usr/local/bin/rate -i {$real_interface} -nlq 1 -Aba 20 -c {$intsubnet} | awk '{ printf \"%s:%s:%s:%s:%s\\n\", $1, $2, $5, $8, $11 }'", $listedIPs);
|
||||
|
||||
unset($bandwidthinfo);
|
||||
unset($receivebytesarray);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user