summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-08-19 03:11:43 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-08-19 03:11:43 +0000
commitb4031ab68a822b61e05e5ac5008d0b1c347b1b89 (patch)
tree51b8e537c1ad085bb4646406e4428c56c358f34d /usr/local
parent1ef8bc7534bb06cd798e2427eed3d195e2c9764e (diff)
downloadpfsense-b4031ab68a822b61e05e5ac5008d0b1c347b1b89.zip
pfsense-b4031ab68a822b61e05e5ac5008d0b1c347b1b89.tar.gz
Show state count on states display screen.
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/diag_dump_states.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/local/www/diag_dump_states.php b/usr/local/www/diag_dump_states.php
index 68b4da0..bbd8def 100755
--- a/usr/local/www/diag_dump_states.php
+++ b/usr/local/www/diag_dump_states.php
@@ -106,12 +106,17 @@ else {
<!-- Start of tab content -->
+<?php
+ $current_statecount=`pfctl -si | grep "current entries" | awk '{ print $3 }'`;
+?>
+
<table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<form action="<?=$_SERVER['SCRIPT_NAME'];?>" method="get">
<table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
+ <td>Current state count: <?=$current_statecount?></td>
<td style="font-weight:bold;" align="right">
<?=gettext("Filter expression:");?>
<input type="text" name="filter" class="formfld search" value="<?=$_GET['filter'];?>" size="30" />
OpenPOWER on IntegriCloud