diff options
| author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-02-04 21:03:09 -0800 | 
|---|---|---|
| committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-02-04 21:03:09 -0800 | 
| commit | bf65dc7681eb22bbf52a413d2c694e3c0bf5b06c (patch) | |
| tree | 721ba0ae6d75ca5f81d71d64d17c8d2844a76d5c | |
| parent | e32e0645b5fe0a3c6427f8cddc75318e9acc9e36 (diff) | |
| download | vyatta-cfg-qos-bf65dc7681eb22bbf52a413d2c694e3c0bf5b06c.tar.gz vyatta-cfg-qos-bf65dc7681eb22bbf52a413d2c694e3c0bf5b06c.zip  | |
get auto speed correctly
numeric comparison uses where string comparison should have been used
| -rw-r--r-- | scripts/VyattaQosUtil.pm | 2 | 
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;  	}      }   | 
