summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-08-30 12:52:57 -0400
committerjim-p <jimp@pfsense.org>2011-08-30 12:54:47 -0400
commit3d534c698c78f26d6ef5bd167d8fba974616da30 (patch)
tree2b081bd4d2edfeb508516d68b44ac1cf58623087
parent716fc5a0cc3ba1e51d47663efb281fc724e1185f (diff)
downloadpfsense-3d534c698c78f26d6ef5bd167d8fba974616da30.zip
pfsense-3d534c698c78f26d6ef5bd167d8fba974616da30.tar.gz
Change mbuf output on dashboard to read total/max, instead of current/total, to give a more useful view. Also only use a single netstat command instead of two.
-rw-r--r--usr/local/www/widgets/widgets/system_information.widget.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/widgets/widgets/system_information.widget.php b/usr/local/www/widgets/widgets/system_information.widget.php
index e1e4645..2f471df 100644
--- a/usr/local/www/widgets/widgets/system_information.widget.php
+++ b/usr/local/www/widgets/widgets/system_information.widget.php
@@ -193,10 +193,10 @@ $curcfg = $config['system']['firmware'];
<td width="25%" class="vncellt">MBUF Usage</td>
<td width="75%" class="listr">
<?php
- $mbufs_inuse=`netstat -mb | grep "mbufs in use" | awk '{ print $1 }' | cut -d"/" -f1`;
- $mbufs_total=`netstat -mb | grep "mbufs in use" | awk '{ print $1 }' | cut -d"/" -f3`;
+ $mbufs_output=`netstat -mb | grep "mbuf clusters in use" | awk '{ print $1 }'`;
+ list( $mbufs_current, $mbufs_cache, $mbufs_total, $mbufs_max ) = explode( "/", $mbufs_output);
?>
- <?=$mbufs_inuse?>/<?=$mbufs_total?>
+ <?= $mbufs_total ?>/<?= $mbufs_max ?>
</td>
</tr>
<tr>
OpenPOWER on IntegriCloud