fix response_time

This commit is contained in:
Olivier Cervello
2022-12-13 12:49:51 +01:00
committed by Yogesh Ojha
parent dd4f14998a
commit a0f1bc0054
+2 -2
View File
@@ -2157,8 +2157,8 @@ def http_crawl(
cdn = line.get('cdn', False)
response_time = line.get('response_time', -1)
if response_time:
response_time = float(''.join(ch for ch in line['response_time'] if not ch.isalpha()))
if line['response_time'][-2:] == 'ms':
response_time = float(''.join(ch for ch in response_time if not ch.isalpha()))
if response_time[-2:] == 'ms':
response_time = response_time / 1000
# Create Subdomain object in DB