diff options
author | jim-p <jimp@pfsense.org> | 2011-08-30 12:52:57 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-08-30 12:54:29 -0400 |
commit | 7a21d1b8d9a838b21cee91f5014473516df29088 (patch) | |
tree | 2df4dc72f5676b7d7f818bb83c64eb449f17db75 /usr/local/www/widgets | |
parent | d2b560442d5c6b0b0aec6b36faf793d488718223 (diff) | |
download | pfsense-7a21d1b8d9a838b21cee91f5014473516df29088.zip pfsense-7a21d1b8d9a838b21cee91f5014473516df29088.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.
Diffstat (limited to 'usr/local/www/widgets')
-rw-r--r-- | usr/local/www/widgets/widgets/system_information.widget.php | 6 |
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> |