testing something
This commit is contained in:
1 parent
970acc2808
commit
4ade43801d
1 file changed
+2
-1
@@ -9,6 +9,7 @@ tmpips = [] #NOTE Need to reset this variable between runs
|
|||||||
ips = []
|
ips = []
|
||||||
ipdict = {}
|
ipdict = {}
|
||||||
currValue = ""
|
currValue = ""
|
||||||
|
threads = {}
|
||||||
|
|
||||||
class threadedLookup(threading.Thread):
|
class threadedLookup(threading.Thread):
|
||||||
def run(self):
|
def run(self):
|
||||||
@@ -60,7 +61,7 @@ for value in ips:
|
|||||||
print currValue
|
print currValue
|
||||||
lookupThread = threadedLookup(name = "lookup" + value)
|
lookupThread = threadedLookup(name = "lookup" + value)
|
||||||
lookupThread.start()
|
lookupThread.start()
|
||||||
|
print(threading.active_count())
|
||||||
time.sleep(10)
|
time.sleep(10)
|
||||||
#pprint(ipdict)
|
#pprint(ipdict)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user