mirror of
https://github.com/netzbegruenung/green-spider.git
synced 2024-05-08 03:43:41 +02:00
Round duration time in milliseconds
This commit is contained in:
parent
220a6ba629
commit
b3da3ccc12
|
@ -109,7 +109,7 @@ def check_site(url):
|
|||
if len(r.history) > 0:
|
||||
result['redirects'] = len(r.history)
|
||||
result['final_url'] = r.url
|
||||
result['duration'] = r.elapsed.microseconds / 1000
|
||||
result['duration'] = round(r.elapsed.microseconds / 1000)
|
||||
except requests.exceptions.ConnectionError as e:
|
||||
logging.error(str(e) + " " + url)
|
||||
result['error'] = "connection"
|
||||
|
|
Loading…
Reference in a new issue