mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-09-28 12:44:57 +02:00
fix response_time
This commit is contained in:
committed by
Yogesh Ojha
parent
ff518a0bb4
commit
5a7ce855aa
@@ -2155,7 +2155,7 @@ def http_crawl(
|
||||
page_title = line.get('title')
|
||||
webserver = line.get('webserver')
|
||||
cdn = line.get('cdn', False)
|
||||
response_time = line.get('response-time')
|
||||
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':
|
||||
|
||||
Reference in New Issue
Block a user