mirror of
https://github.com/xdtianyu/scripts.git
synced 2025-09-23 12:29:22 +08:00
Update speedtest.py
This commit is contained in:
@@ -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 = {}
|
||||||
@@ -45,6 +47,10 @@ 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:
|
||||||
|
Reference in New Issue
Block a user