summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-07-16 15:37:04 -0400
committerjim-p <jimp@pfsense.org>2013-07-16 15:39:18 -0400
commit2c7f71d97e6dfb3278c849ad5f16754a24086fa7 (patch)
tree244787ac510bccbf3f4f5d875176931004310c01 /usr
parentde8f0075636459515025a25a22a47d8803aff75e (diff)
downloadpfsense-2c7f71d97e6dfb3278c849ad5f16754a24086fa7.zip
pfsense-2c7f71d97e6dfb3278c849ad5f16754a24086fa7.tar.gz
Fixup mbuf stats function
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/includes/functions.inc.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/includes/functions.inc.php b/usr/local/www/includes/functions.inc.php
index edef74e..3e00d13 100644
--- a/usr/local/www/includes/functions.inc.php
+++ b/usr/local/www/includes/functions.inc.php
@@ -164,9 +164,10 @@ function get_hwtype() {
}
function get_mbuf() {
- $mbufs_output=trim(`netstat -mb | grep "mbuf clusters in use" | awk '{ print $1 }'`);
+ $mbufs_output=trim(`/usr/bin/netstat -mb | /usr/bin/grep "mbuf clusters in use" | /usr/bin/awk '{ print $1 }'`);
list( $mbufs_current, $mbufs_cache, $mbufs_total, $mbufs_max ) = explode( "/", $mbufs_output);
$mbufusage = round(($mbufs_total / $mbufs_max) * 100);
+ return $mbufusage;
}
function get_temp() {
OpenPOWER on IntegriCloud