From d34ade523b8d9cd959cbbc8a5e60a163dd8618ff Mon Sep 17 00:00:00 2001 From: Michele Di Maria Date: Tue, 6 Dec 2011 22:51:11 +0100 Subject: [PATCH] Fixes this: http://redmine.pfsense.org/issues/2015 I was checking, but if someone of the stuff give it a check it would be much better, since this is a core feature! --- etc/inc/shaper.inc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc index 74e548b00d..25c72b7e72 100644 --- a/etc/inc/shaper.inc +++ b/etc/inc/shaper.inc @@ -1191,12 +1191,13 @@ class priq_queue { function build_shortform() { /* XXX: Hacks in site. Mostly layer violations! */ global $g, $altq_list_queues; - + global $shaperIFlist; + $altq =& $altq_list_queues[$this->GetInterface()]; if ($altq) $scheduler = ": " . $altq->GetScheduler(); $form = ""; - $form .= "GetInterface() . "&queue=" . $this->GetInterface()."&action=show\">". $shaperIFlist[$this->GetInterface()] .": ".$scheduler.""; + $form .= "GetInterface() . "&queue=" . $this->GetQname()."&action=show\">". $shaperIFlist[$this->GetInterface()] .$scheduler.""; $form .= ""; /* * XXX: Hack in sight maybe fix with a class that wraps all @@ -4036,12 +4037,13 @@ function filter_generate_dummynet_rules() { function build_iface_without_this_queue($iface, $qname) { global $g, $altq_list_queues; + global $shaperIFlist; $altq =& $altq_list_queues[$iface]; if ($altq) $scheduler = ": " . $altq->GetScheduler(); $form = ""; - $form .= "".$iface.": ".$scheduler.""; + $form .= "". $shaperIFlist[$iface] . $scheduler.""; $form .= ""; $form .= ""; $form .= "