diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2011-10-27 14:25:34 +0200 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2011-10-27 14:25:34 +0200 |
commit | 8e5ab3bad6b6cfc7128e56d89d1633832f4187b6 (patch) | |
tree | 7cc25ee6afc1593bdcd29eba5596ef0abf73820c /lib/Vyatta/Qos | |
parent | 070c9d55f154ad712a319175dd0a1bd9b7837358 (diff) | |
download | vyatta-cfg-qos-8e5ab3bad6b6cfc7128e56d89d1633832f4187b6.tar.gz vyatta-cfg-qos-8e5ab3bad6b6cfc7128e56d89d1633832f4187b6.zip |
Fix non-numeric comparison
Regression from previous commit. Need to compare numeric not string value.
Diffstat (limited to 'lib/Vyatta/Qos')
-rw-r--r-- | lib/Vyatta/Qos/Util.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Vyatta/Qos/Util.pm b/lib/Vyatta/Qos/Util.pm index 3330c3e..5782fa9 100644 --- a/lib/Vyatta/Qos/Util.pm +++ b/lib/Vyatta/Qos/Util.pm @@ -98,7 +98,7 @@ sub getRate { if ($num == 0); die "$rate is not a valid bandwidth (negative value)\n" - if ($rate < 0); + if ($num < 0); if ( defined $suffix ) { my $scale = $rates{ lc $suffix }; |