summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-05-13 19:32:49 +0000
committerErmal <eri@pfsense.org>2010-05-13 19:32:49 +0000
commitef021ff780bfae0d0188a051a0d284a33c7340c7 (patch)
treea4523e697c3c3d5a4d944f328089dbf6a53ab89f /usr/local/www
parentf83fa942920b3ef8cd23f35ad3237985b895a1eb (diff)
downloadpfsense-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/local/www')
-rwxr-xr-xusr/local/www/bandwidth_by_ip.php2
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);
OpenPOWER on IntegriCloud