mirror of
https://github.com/gryf/wicd.git
synced 2025-12-20 04:48:00 +01:00
* Fixed a couple more syntax errors
This commit is contained in:
@@ -398,9 +398,9 @@ class WirelessInterface(Interface):
|
||||
if (strength_pattern.match(cell)):
|
||||
[(strength, max_strength)] = strength_pattern.findall(cell)
|
||||
if max_strength:
|
||||
CurrentNetwork["quality"] = 100 * int(strength) // int(max_strength)
|
||||
ap["quality"] = 100 * int(strength) // int(max_strength)
|
||||
else:
|
||||
CurrentNetwork["quality"] = int(strength)
|
||||
ap["quality"] = int(strength)
|
||||
elif misc.RunRegex(altstrength_pattern,cell):
|
||||
ap['quality'] = misc.RunRegex(altstrength_pattern,cell)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user