testing something
This commit is contained in:
parent
970acc2808
commit
4ade43801d
3
main.py
3
main.py
@ -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)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user