summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_queues.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-07-09 16:25:11 +0000
committerErmal Luçi <eri@pfsense.org>2008-07-09 16:25:11 +0000
commit78152bbdc9e995043fa6e49f77c0fd3b08b0403d (patch)
tree00e8d525ae210bdaa12d3c846387d55791dfc251 /usr/local/www/status_queues.php
parentbe94bb10d6dce29618bf6ecb6ff571f637e388b6 (diff)
downloadpfsense-78152bbdc9e995043fa6e49f77c0fd3b08b0403d.zip
pfsense-78152bbdc9e995043fa6e49f77c0fd3b08b0403d.tar.gz
Correctly show interface names.
Diffstat (limited to 'usr/local/www/status_queues.php')
-rwxr-xr-xusr/local/www/status_queues.php19
1 files changed, 3 insertions, 16 deletions
diff --git a/usr/local/www/status_queues.php b/usr/local/www/status_queues.php
index dd5ab0f..0b3878d 100755
--- a/usr/local/www/status_queues.php
+++ b/usr/local/www/status_queues.php
@@ -43,22 +43,9 @@ $pfctl_vsq = `/sbin/pfctl -vsq`;
$pfctl_vsq_array = split("\n", $pfctl_vsq);
$if = "";
foreach($pfctl_vsq_array as $pfctl) {
- if (preg_match_all("/queue\s+(\w+)\s+/",$pfctl,$match_array))
- if(stristr($match_array[1][0],"root_")==false)
- $a_queues[] = $match_array[1][0] . " on {$if}" ;
- else {
- $if = preg_replace("(root_)", "", $match_array[1][0]);
- foreach ($config['interfaces'] as $ifkey => $ifdesc) {
- if ($ifdesc['if'] == $if) {
- if ($ifdesc['descr'] != "") {
- $if = htmlspecialchars($ifdesc['descr']);
- } else {
- $if = strtoupper($ifkey);
- }
- break;
- }
- }
- }
+ if (preg_match_all("/queue\s+(\w+)\s+(\w+)\s+(\w+)\s+/",$pfctl,$match_array))
+ $a_queues[] = $match_array[1][0] . " on " .
+ convert_real_interface_to_friendly_descr($match_array[3][0]);
}
$pgtitle = array("Status","Traffic shaper","Queues");
OpenPOWER on IntegriCloud