summaryrefslogtreecommitdiffstats
path: root/usr/local/www/widgets/widgets/system_information.widget.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-07-16 15:38:24 -0400
committerjim-p <jimp@pfsense.org>2013-07-16 15:39:19 -0400
commit4a83831c53dd61e9fb94dea2f1bd7ee73210b252 (patch)
tree667b01bfe9aee294b4b33bcf0516e8e1d6fce743 /usr/local/www/widgets/widgets/system_information.widget.php
parent2c7f71d97e6dfb3278c849ad5f16754a24086fa7 (diff)
downloadpfsense-4a83831c53dd61e9fb94dea2f1bd7ee73210b252.zip
pfsense-4a83831c53dd61e9fb94dea2f1bd7ee73210b252.tar.gz
Add a meter for states, too
Diffstat (limited to 'usr/local/www/widgets/widgets/system_information.widget.php')
-rw-r--r--usr/local/www/widgets/widgets/system_information.widget.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr/local/www/widgets/widgets/system_information.widget.php b/usr/local/www/widgets/widgets/system_information.widget.php
index b18cca2..e8ff29e 100644
--- a/usr/local/www/widgets/widgets/system_information.widget.php
+++ b/usr/local/www/widgets/widgets/system_information.widget.php
@@ -186,7 +186,11 @@ $curcfg = $config['system']['firmware'];
<tr>
<td width="25%" class="vncellt"><?=gettext("State table size");?></td>
<td width="75%" class="listr">
- <span id="pfstate"><?= htmlspecialchars(get_pfstate()); ?></span>
+ <?php $pfstatetext = get_pfstate();
+ $pfstateusage = get_pfstate(true);
+ ?>
+ <img src="./themes/<?= $g['theme']; ?>/images/misc/bar_left.gif" height="15" width="4" border="0" align="middle" alt="left bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_blue.gif" height="15" name="pfstatewidtha" id="pfstatewidtha" width="<?= round($pfstateusage); ?>" border="0" align="middle" alt="red bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_gray.gif" height="15" name="pfstatewidthb" id="pfstatewidthb" width="<?= (100 - $pfstateusage); ?>" border="0" align="middle" alt="gray bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_right.gif" height="15" width="5" border="0" align="middle" alt="right bar" />
+ <br/><span id="pfstateusagemeter"><?= $pfstateusage.'%'; ?></span> (<span id="pfstate"><?= htmlspecialchars($pfstatetext); ?></span>)
<br />
<a href="diag_dump_states.php"><?=gettext("Show states");?></a>
</td>
OpenPOWER on IntegriCloud