From 7e6f7938d58289f9834c788447be53928f51b07b Mon Sep 17 00:00:00 2001 From: compwiz18 <> Date: Mon, 17 Dec 2007 15:22:04 +0000 Subject: [PATCH] * Fixed a couple more syntax errors --- wnettools.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wnettools.py b/wnettools.py index 2684423..acd3f88 100644 --- a/wnettools.py +++ b/wnettools.py @@ -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: @@ -604,8 +604,8 @@ class WirelessInterface(Interface): #strength = misc.RunRegex(strength_pattern,output) - [(strength, max_strength)] = strength_pattern.findall(output) - if max_strength and strength: + [(strength, max_strength)] = strength_pattern.findall(output) + if max_strength and strength: return 100 * int(strength) / int(max_strength) if strength == None: