summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-03-07 01:37:45 +0000
committerBill Marquette <billm@pfsense.org>2005-03-07 01:37:45 +0000
commit4bed294c79f03dbc9e79f6b1a69c3fbe27d4f07b (patch)
tree3136f17a089f5d2ab8eb9a5f1bb4a9da6b083c4c /usr
parent05eefaceda9752c29de06e44a62fdc01f150cecf (diff)
downloadpfsense-4bed294c79f03dbc9e79f6b1a69c3fbe27d4f07b.zip
pfsense-4bed294c79f03dbc9e79f6b1a69c3fbe27d4f07b.tar.gz
add suspend stats
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/status_queues.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/status_queues.php b/usr/local/www/status_queues.php
index 7842ae9..ea11967 100755
--- a/usr/local/www/status_queues.php
+++ b/usr/local/www/status_queues.php
@@ -54,7 +54,7 @@ $a_queues = &$config['shaper']['queue'];
<form action="status_queues.php" method="post">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
- <td class="listhdr">Name</td>
+ <td class="listhdr">Queue Stats</td>
</tr>
<?php $i = 0; foreach ($a_queues as $queue): ?>
<tr valign="top">
@@ -111,6 +111,7 @@ While(!Connection_Aborted()) {
$packet_sampled = intval($stat_line_split[2]);
$speed = $stat_line_split[1];
$borrows = intval($stat_line_split[3]);
+ $suspends = intval($stat_line_split[4]);
echo "<script language='javascript'>\n";
@@ -119,8 +120,7 @@ While(!Connection_Aborted()) {
echo "document.queue{$i}widthb.style.width='{$packet_s}';\n";
echo "document.queue{$i}widtha.style.width='" . (400 - $packet_s) . "';\n";
$borrows_txt = "";
- if(intval($borrows > 0))
- $borrows_txt = " - {$borrows} borrows";
+ $borrows_txt = " - {$borrows} borrows - {$suspends} suspends";
echo "document.forms[0].queue{$i}meter.value = '" . $packet_sampled . "/pps - " . $speed . "{$borrows_txt}';\n";
echo "</script>\n";
$i++;
OpenPOWER on IntegriCloud