diff options
Diffstat (limited to 'lib/Vyatta/Qos/ShaperClass.pm')
-rw-r--r-- | lib/Vyatta/Qos/ShaperClass.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Vyatta/Qos/ShaperClass.pm b/lib/Vyatta/Qos/ShaperClass.pm index aa3a8ff..9a0ba00 100644 --- a/lib/Vyatta/Qos/ShaperClass.pm +++ b/lib/Vyatta/Qos/ShaperClass.pm @@ -43,7 +43,7 @@ sub new { $self->{id} = $id; bless $self, $class; - $self->_define($config); + $self->_define($config) if ($config); return $self; } @@ -135,7 +135,7 @@ sub prioQdisc { if ($limit) { foreach my $i (qw/1 2 3/) { - printf "qdisc add dev %s parent %x:%d pfifo limit %d\n", + printf "qdisc add dev %s parent %x:%x pfifo limit %d\n", $dev, $prio_id, $i, $limit; } } |