From 1d2644cc79a9668fe912301b7c89f21078b8d40e Mon Sep 17 00:00:00 2001 From: Lars Holmberg Date: Tue, 4 May 2021 14:11:42 +0200 Subject: [PATCH] Remove start_time in one more place --- locust/contrib/fasthttp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locust/contrib/fasthttp.py b/locust/contrib/fasthttp.py index c64489b41c..41c224fbd6 100644 --- a/locust/contrib/fasthttp.py +++ b/locust/contrib/fasthttp.py @@ -217,7 +217,7 @@ def request( # Record the consumed time # Note: This is intentionally placed after we record the content_size above, since # we'll then trigger fetching of the body (unless stream=True) - request_meta["response_time"] = int((default_timer() - request_meta["start_time"]) * 1000) + request_meta["response_time"] = int((default_timer() - start_time) * 1000) if catch_response: return ResponseContextManager(response, environment=self.environment, request_meta=request_meta)