Skip to content

Commit

Permalink
Merge pull request #2164 from conghuiw/master
Browse files Browse the repository at this point in the history
Fix broken link in cpu warning message.
  • Loading branch information
cyberw authored Aug 18, 2022
2 parents bd2c279 + 378c6d2 commit 15bb045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locust/runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def monitor_cpu_and_memory(self) -> NoReturn:
self.environment.events.cpu_warning.fire(environment=self.environment, cpu_usage=self.current_cpu_usage)
if not self.cpu_warning_emitted:
logging.warning(
f"CPU usage above {CPU_WARNING_THRESHOLD}%! This may constrain your throughput and may even give inconsistent response time measurements! See https://docs.locust.io/en/stable/running-locust-distributed.html for how to distribute the load over multiple CPU cores or machines"
f"CPU usage above {CPU_WARNING_THRESHOLD}%! This may constrain your throughput and may even give inconsistent response time measurements! See https://docs.locust.io/en/stable/running-distributed.html for how to distribute the load over multiple CPU cores or machines"
)
self.cpu_warning_emitted = True
gevent.sleep(CPU_MONITOR_INTERVAL)
Expand Down

0 comments on commit 15bb045

Please sign in to comment.