summaryrefslogtreecommitdiff
path: root/lib/Vyatta/Qos/TrafficShaper.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Vyatta/Qos/TrafficShaper.pm')
-rw-r--r--lib/Vyatta/Qos/TrafficShaper.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Vyatta/Qos/TrafficShaper.pm b/lib/Vyatta/Qos/TrafficShaper.pm
index 5e365c5..672471e 100644
--- a/lib/Vyatta/Qos/TrafficShaper.pm
+++ b/lib/Vyatta/Qos/TrafficShaper.pm
@@ -200,11 +200,11 @@ sub commands {
printf "class add dev %s parent %x: classid %x:1 htb rate %s\n",
$dev, $parent, $parent, $rate;
+ my $prio = 1;
foreach my $class (@$classes) {
$class->gen_class( $dev, 'htb', $parent, $rate, $r2q );
$class->gen_leaf( $dev, $parent, $rate );
- my $prio = 1;
foreach my $match ( $class->matchRules() ) {
$match->filter( $dev, $parent, $class->{id}, $prio++,
$class->{dsmark} );