summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2011-10-27 14:25:34 +0200
committerStephen Hemminger <stephen.hemminger@vyatta.com>2011-10-27 14:25:34 +0200
commit8e5ab3bad6b6cfc7128e56d89d1633832f4187b6 (patch)
tree7cc25ee6afc1593bdcd29eba5596ef0abf73820c
parent070c9d55f154ad712a319175dd0a1bd9b7837358 (diff)
downloadvyatta-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.
-rw-r--r--lib/Vyatta/Qos/Util.pm2
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 };