summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Byington <carl@five-ten-sg.com>2014-12-18 09:24:47 -0800
committerkouak <kouak@kouak.org>2015-03-26 19:31:40 +0100
commitb9cfbe091e636b2bcdd35f2461a4f68c80e43e5e (patch)
tree4d6b73d779ce5c1ec7a0f7f2077cedbd1927f50d
parent1a9399fe3e2dc25fadff10dd8c72485337dedb51 (diff)
downloadvyatta-cfg-qos-b9cfbe091e636b2bcdd35f2461a4f68c80e43e5e.tar.gz
vyatta-cfg-qos-b9cfbe091e636b2bcdd35f2461a4f68c80e43e5e.zip
fq-codel target and interval in milliseconds (#446)
Signed-off-by: kouak <kouak@kouak.org>
-rw-r--r--lib/Vyatta/Qos/FairQueueCodel.pm4
-rw-r--r--lib/Vyatta/Qos/ShaperClass.pm2
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/Vyatta/Qos/FairQueueCodel.pm b/lib/Vyatta/Qos/FairQueueCodel.pm
index 79c1f79..a6f4220 100644
--- a/lib/Vyatta/Qos/FairQueueCodel.pm
+++ b/lib/Vyatta/Qos/FairQueueCodel.pm
@@ -44,6 +44,10 @@ sub new {
$self->{_target} = $config->returnValue('target');
$self->{_interval} = $config->returnValue('interval');
$self->{_cquantum} = $config->returnValue('codel-quantum');
+
+ if ( $self->{_target} ) { $self->{_target} *= 1000; }
+ if ( $self->{_interval} ) { $self->{_interval} *= 1000; }
+
return bless $self, $class;
}
diff --git a/lib/Vyatta/Qos/ShaperClass.pm b/lib/Vyatta/Qos/ShaperClass.pm
index b4689b4..b0d6343 100644
--- a/lib/Vyatta/Qos/ShaperClass.pm
+++ b/lib/Vyatta/Qos/ShaperClass.pm
@@ -133,7 +133,7 @@ sub codelQdisc {
my ( $self, $dev, $rate ) = @_;
print "fq_codel";
- print " limit $self->{_limit}" if ( $self->{_limit} );
+ print " limit $self->{_limit}" if ( $self->{_limit} );
print " flows $self->{_flows}" if ( $self->{_flows} );
print " target $self->{_target}" if ( $self->{_target} );
print " interval $self->{_interval}" if ( $self->{_interval} );