From 93ef17574ac5fa8f41561d081914faa698e904b6 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 15 Feb 2008 16:45:32 -0800 Subject: 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. --- scripts/VyattaQosUtil.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; -- cgit v1.2.3