changelog
This commit is contained in:
parent
cfa8b2686b
commit
0815ccd930
6 changed files with 32 additions and 33 deletions
|
|
@ -265,7 +265,7 @@ class Node(Thread):
|
|||
headers = {
|
||||
'User-Agent': settings.USER_AGENT,
|
||||
}
|
||||
t1 = datetime.now()
|
||||
t1 = datetime.utcnow()
|
||||
logger.debug('download %s', url)
|
||||
'''
|
||||
r = requests.get(url, headers=headers)
|
||||
|
|
@ -290,7 +290,7 @@ class Node(Thread):
|
|||
'''
|
||||
content = r.read()
|
||||
|
||||
t2 = datetime.now()
|
||||
t2 = datetime.utcnow()
|
||||
duration = (t2-t1).total_seconds()
|
||||
if duration:
|
||||
self.download_speed = len(content) / duration
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue