From 2d07b58d8cc2c67fbb701cf2d369691ad3ab0074 Mon Sep 17 00:00:00 2001 From: jim-p Date: Mon, 30 Oct 2017 15:34:44 -0400 Subject: [PATCH] Change a few more instances of using the physical interface to the friendly interface in status_queues.php, which allows root queues to function with the new VLAN interface names. Fixes #8007 --- src/usr/local/www/status_queues.php | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/src/usr/local/www/status_queues.php b/src/usr/local/www/status_queues.php index 21e577ade7..6c1ce68c15 100644 --- a/src/usr/local/www/status_queues.php +++ b/src/usr/local/www/status_queues.php @@ -225,17 +225,19 @@ function processQueues($altqstats, $level, $parent_name) { $prev_if = $q['interface']; } $qfinterface = convert_real_interface_to_friendly_interface_name($q['interface']); + $qname = str_replace($q['interface'], $qfinterface, $q['name']); + ?> +/-"; + echo "+/-"; } - if (strstr($q['name'], "root_")) { + if (strstr($qname, "root_")) { echo "Root queue"; } else { - echo "" . htmlspecialchars($q['name']) . ""; + echo "" . htmlspecialchars($qname) . ""; } ?> @@ -243,15 +245,15 @@ function processQueues($altqstats, $level, $parent_name) { $cpuUsage = 0; print(''); print('
'); - print('
'); + print('
'); print('
'); print(''); - print(''); - print(''); - print(''); - print(''); - print(''); - print(''); + print(''); + print(''); + print(''); + print(''); + print(''); + print(''); ?> queuename = $xml['name'] . convert_real_interface_to_friendly_interface_name($xml['interface']); + $current->queuename = $qname . $fname; $current->queuelength = $xml['qlength']; $current->pps = $xml['measured']; $current->bandwidth = $xml['measuredspeedint'];