From 0a62ca06260cc0a0f2b053d1d442b4c03b426493 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 10 Apr 2008 10:47:14 -0500 Subject: fix bug with interpretation of ceiling This fixes problem which causes QoS not to fail on commit if ceiling is a percentage. The ceiling maybe a percentage (not fixed) value so it needs to be interpreted before passing to tc. --- scripts/VyattaQosTrafficShaper.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/VyattaQosTrafficShaper.pm b/scripts/VyattaQosTrafficShaper.pm index ef7bd7b..1d01ed5 100644 --- a/scripts/VyattaQosTrafficShaper.pm +++ b/scripts/VyattaQosTrafficShaper.pm @@ -193,7 +193,7 @@ printf ${out} "class add dev %s parent %x:1 classid %x:%x htb rate %s", $dev, $parent, $parent, $self->{id}, $rate; - print ${out} " ceil $self->{_ceiling}" if ( defined $self->{_ceiling} ); + print ${out} " ceil $ceil" if ( $ceil ); print ${out} " burst $self->{_burst}" if ( defined $self->{_burst} ); print ${out} " prio $self->{_priority}" if ( defined $self->{_priority} ); print {$out} "\n"; -- cgit v1.2.3