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 .= "