Update speedtest.py
This commit is contained in:
parent
de1c56144a
commit
799a01c8b1
|
@ -31,6 +31,8 @@ with open(directory+"/"+name+".txt", 'r') as content_file:
|
||||||
tests = content.split('#######################')
|
tests = content.split('#######################')
|
||||||
|
|
||||||
date = datetime
|
date = datetime
|
||||||
|
min_date = datetime.now() + timedelta(0, -3600*36)
|
||||||
|
|
||||||
uri = ""
|
uri = ""
|
||||||
|
|
||||||
testDict = {}
|
testDict = {}
|
||||||
|
@ -44,7 +46,11 @@ for test in tests:
|
||||||
|
|
||||||
print date
|
print date
|
||||||
print uri
|
print uri
|
||||||
|
|
||||||
|
if date < min_date:
|
||||||
|
print "more than 36 hour, ignore."
|
||||||
|
continue
|
||||||
|
|
||||||
if uri in testDict:
|
if uri in testDict:
|
||||||
speedList = testDict[uri]
|
speedList = testDict[uri]
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue