testing something

This commit is contained in:
Benjamyn Love 2018-02-20 09:28:43 +11:00
parent 970acc2808
commit 4ade43801d

View File

@ -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)