summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_queues.php
diff options
context:
space:
mode:
authorMichele Di Maria <michele@nt2.it>2013-02-26 21:25:49 +0100
committerMichele Di Maria <michele@nt2.it>2013-02-26 21:25:49 +0100
commit1679b68cf7ae5f086ca2a4c976b878c5f9e4b433 (patch)
treeece0966ce09dd10735fa381f56cff08fd8bcfec2 /usr/local/www/status_queues.php
parent8e0069312d29cebae24a90ebc6527f31d4761341 (diff)
downloadpfsense-1679b68cf7ae5f086ca2a4c976b878c5f9e4b433.zip
pfsense-1679b68cf7ae5f086ca2a4c976b878c5f9e4b433.tar.gz
Status Queue page: Adds the IF name not shown for FAIRQ or PRIQ
Diffstat (limited to 'usr/local/www/status_queues.php')
-rwxr-xr-xusr/local/www/status_queues.php16
1 files changed, 9 insertions, 7 deletions
diff --git a/usr/local/www/status_queues.php b/usr/local/www/status_queues.php
index e1796a4..3fd2cbf 100755
--- a/usr/local/www/status_queues.php
+++ b/usr/local/www/status_queues.php
@@ -184,23 +184,26 @@ function processQueues($altqstats, $level, $parent_name){
if ($gray_value > 250) $gray_value = 255;
$row_background = str_repeat(dechex($gray_value), 3);
$parent_name = $parent_name . " queuerow" . $altqstats['name'] . $altqstats['interface'];
+ $prev_if = $altqstats['interface'];
foreach ($altqstats['queue'] as $q) {
$if_name = "";
- foreach ($if_queue_list as $oif => $real_name)
- {
- if ($oif == $q['interface'])
- {
+ foreach ($if_queue_list as $oif => $real_name) {
+ if ($oif == $q['interface']) {
$if_name = $real_name;
break;
}
}
+ if ($prev_if != $q['interface']) {
+ echo "<tr><td colspan=\"8\" style=\"padding: 2px;\"><b>Interface ". htmlspecialchars(convert_real_interface_to_friendly_descr($q['interface'])) . "</b></td></tr>";
+ $prev_if = $q['interface'];
+ }
?>
<tr class="<?php echo $parent_name?>">
<td bgcolor="#<?php echo $row_background?>" style="padding-left: <?php echo $level * 20?>px;">
<font color="#000000">
<?
if (strstr($q['name'], "root_"))
- echo "<a href=\"firewall_shaper.php?interface={$if_name}&queue={$if_name}&action=show\">" . htmlspecialchars(convert_real_interface_to_friendly_descr($q['interface'])) . "</a>";
+ echo "<a href=\"firewall_shaper.php?interface={$if_name}&queue={$if_name}&action=show\">Root queue</a>";
else
echo "<a href=\"firewall_shaper.php?interface={$if_name}&queue={$q['name']}&action=show\">" . htmlspecialchars($q['name']) . "</a>";
?>
@@ -242,8 +245,7 @@ function statsQueues($xml){
$current->borrows = intval($xml['borrows']);
$current->suspends = intval($xml['suspends']);
$current->drops = intval($xml['droppedpkts']);
- if (is_array($xml['queue']))
- {
+ if (is_array($xml['queue'])) {
foreach($xml['queue'] as $q) {
$child = statsQueues($q);
$current->pps += $child->pps;
OpenPOWER on IntegriCloud