summaryrefslogtreecommitdiff
path: root/scripts/VyattaQosUtil.pm
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-02-04 21:03:09 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-02-04 21:03:09 -0800
commitbf65dc7681eb22bbf52a413d2c694e3c0bf5b06c (patch)
tree721ba0ae6d75ca5f81d71d64d17c8d2844a76d5c /scripts/VyattaQosUtil.pm
parente32e0645b5fe0a3c6427f8cddc75318e9acc9e36 (diff)
downloadvyatta-cfg-qos-bf65dc7681eb22bbf52a413d2c694e3c0bf5b06c.tar.gz
vyatta-cfg-qos-bf65dc7681eb22bbf52a413d2c694e3c0bf5b06c.zip
get auto speed correctly
numeric comparison uses where string comparison should have been used
Diffstat (limited to 'scripts/VyattaQosUtil.pm')
-rw-r--r--scripts/VyattaQosUtil.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/VyattaQosUtil.pm b/scripts/VyattaQosUtil.pm
index 121970e..bbc43ea 100644
--- a/scripts/VyattaQosUtil.pm
+++ b/scripts/VyattaQosUtil.pm
@@ -132,7 +132,7 @@ sub interfaceRate {
$config->setLevel("interfaces ethernet");
if ($config->exists("$interface")) {
my $speed = $config->returnValue("$interface speed");
- if (defined($speed) && $speed != "auto") {
+ if (defined($speed) && $speed ne "auto") {
return $speed * 1000000;
}
}