projects
/
wifihood
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
REFACTORING : move tstamp into real scanner object
[wifihood]
/
wifiscanner
/
wifimap
/
wifiscan.py
diff --git
a/wifiscanner/wifimap/wifiscan.py
b/wifiscanner/wifimap/wifiscan.py
index
934e4ab
..
f2a59ba
100644
(file)
--- a/
wifiscanner/wifimap/wifiscan.py
+++ b/
wifiscanner/wifimap/wifiscan.py
@@
-21,7
+21,6
@@
class WifiScanner ( gobject.GObject ) :
# Values to be set by wireless scans
self.scanlist = {}
# Values to be set by wireless scans
self.scanlist = {}
- self.tstamp = 0
self.nscan = 0
self.nfp = 0
self.nscan = 0
self.nfp = 0
@@
-44,7
+43,6
@@
class WifiScanner ( gobject.GObject ) :
# BUG : if scan is called after stop (maybe in other cases), 'ERROR' is returned and split raises exception
self.nscan +=1
self.scanlist.clear()
# BUG : if scan is called after stop (maybe in other cases), 'ERROR' is returned and split raises exception
self.nscan +=1
self.scanlist.clear()
- self.tstamp = time.time()
for net in scan_out.split() :
self.nfp += 1
items = net.rsplit(":", 1)
for net in scan_out.split() :
self.nfp += 1
items = net.rsplit(":", 1)
@@
-69,7
+67,6
@@
if __name__ == "__main__" :
def show_scan(sample):
gobject.timeout_add( 5000 , show_scan , sample )
print "scan results : %s" % sample.report()
def show_scan(sample):
gobject.timeout_add( 5000 , show_scan , sample )
print "scan results : %s" % sample.report()
- print " tstamp %s" % sample.tstamp
c = 0
for k,v in sample.scanlist.iteritems() :
c += 1
c = 0
for k,v in sample.scanlist.iteritems() :
c += 1