From a1d63b56887e196bade8196a7a27132ee03b48ae Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 20 May 2009 14:58:43 -0700 Subject: Missing setup of top level rate --- lib/Vyatta/Qos/WeightedRandom.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/Vyatta') diff --git a/lib/Vyatta/Qos/WeightedRandom.pm b/lib/Vyatta/Qos/WeightedRandom.pm index 6e30839..f97cc8e 100644 --- a/lib/Vyatta/Qos/WeightedRandom.pm +++ b/lib/Vyatta/Qos/WeightedRandom.pm @@ -39,6 +39,7 @@ sub new { my $self = {}; my $class = ref($that) || $that; bless $self, $class; + $self->{_rate} = $rate; $self->{_classes} = \@classes; return $self; -- cgit v1.2.3