diff options
author | Ermal <eri@pfsense.org> | 2010-05-13 19:32:49 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-05-13 19:32:49 +0000 |
commit | ef021ff780bfae0d0188a051a0d284a33c7340c7 (patch) | |
tree | a4523e697c3c3d5a4d944f328089dbf6a53ab89f /usr | |
parent | f83fa942920b3ef8cd23f35ad3237985b895a1eb (diff) | |
download | pfsense-ef021ff780bfae0d0188a051a0d284a33c7340c7.zip pfsense-ef021ff780bfae0d0188a051a0d284a33c7340c7.tar.gz |
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.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/bandwidth_by_ip.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/bandwidth_by_ip.php b/usr/local/www/bandwidth_by_ip.php index b85db4f..e2d2417 100755 --- a/usr/local/www/bandwidth_by_ip.php +++ b/usr/local/www/bandwidth_by_ip.php @@ -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); |