summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-02-15 16:45:32 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-02-15 16:45:32 -0800
commit93ef17574ac5fa8f41561d081914faa698e904b6 (patch)
tree30bc66808af63543c432afcde4d4011c8d4070cd /scripts
parent1b29c373e90074f6ba4de36523be7e09d90b6b58 (diff)
downloadvyatta-cfg-qos-93ef17574ac5fa8f41561d081914faa698e904b6.tar.gz
vyatta-cfg-qos-93ef17574ac5fa8f41561d081914faa698e904b6.zip
default scaling for bandwidth fix
If no suffix is given, the bandwidth value should be in "bits/sec" (not bytes/sec), to be compatiable with other routers.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/VyattaQosUtil.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/VyattaQosUtil.pm b/scripts/VyattaQosUtil.pm
index 1e77179..3ae6916 100644
--- a/scripts/VyattaQosUtil.pm
+++ b/scripts/VyattaQosUtil.pm
@@ -52,7 +52,7 @@ sub getRate {
}
} else {
# No suffix implies Kbps just as IOS
- $num *= 8000;
+ $num *= 1000;
}
($num >= 0) or die "Negative bandwidth not allowed\n";