diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-04-10 10:47:14 -0500 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-04-10 10:47:14 -0500 |
commit | 0a62ca06260cc0a0f2b053d1d442b4c03b426493 (patch) | |
tree | 56f86f51a2c36533f31a36e4b99300980eeabfd0 | |
parent | 71f56ba1de7d6537255a6df783cebe4d2b6f0786 (diff) | |
download | vyatta-cfg-qos-0a62ca06260cc0a0f2b053d1d442b4c03b426493.tar.gz vyatta-cfg-qos-0a62ca06260cc0a0f2b053d1d442b4c03b426493.zip |
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.
-rw-r--r-- | scripts/VyattaQosTrafficShaper.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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"; |