diff --git a/locust/html.py b/locust/html.py
index 4c886a3edc..b1a5d904d9 100644
--- a/locust/html.py
+++ b/locust/html.py
@@ -125,7 +125,7 @@ def get_html_report(
"show_download_link": show_download_link,
"locustfile": escape(str(environment.locustfile)),
"tasks": task_data,
- "percentiles_to_chart": stats_module.PERCENTILES_TO_CHART,
+ "percentiles_to_chart": stats_module.MODERN_UI_PERCENTILES_TO_CHART,
},
theme=theme,
static_js="\n".join(static_js),
diff --git a/locust/stats.py b/locust/stats.py
index 354d856695..32d6a09f1f 100644
--- a/locust/stats.py
+++ b/locust/stats.py
@@ -132,6 +132,7 @@ def resize_handler(signum: int, frame: Optional[FrameType]):
PERCENTILES_TO_REPORT = [0.50, 0.66, 0.75, 0.80, 0.90, 0.95, 0.98, 0.99, 0.999, 0.9999, 1.0]
PERCENTILES_TO_CHART = [0.50, 0.95]
+MODERN_UI_PERCENTILES_TO_CHART = [0.95]
class RequestStatsAdditionError(Exception):
@@ -920,7 +921,7 @@ def stats_history(runner: "Runner") -> None:
current_response_time_percentiles = {
f"response_time_percentile_{percentile}": stats.total.get_current_response_time_percentile(percentile)
or 0
- for percentile in PERCENTILES_TO_CHART
+ for percentile in MODERN_UI_PERCENTILES_TO_CHART
}
r = {
diff --git a/locust/web.py b/locust/web.py
index 00fdde52ad..6926c4bc84 100644
--- a/locust/web.py
+++ b/locust/web.py
@@ -415,7 +415,7 @@ def request_stats() -> Response:
f"response_time_percentile_{percentile}": environment.runner.stats.total.get_current_response_time_percentile(
percentile
)
- for percentile in stats_module.PERCENTILES_TO_CHART
+ for percentile in stats_module.MODERN_UI_PERCENTILES_TO_CHART
}
else:
report[
@@ -592,7 +592,7 @@ def update_template_args(self):
if self.modern_ui:
percentiles = {
- "percentiles_to_chart": stats_module.PERCENTILES_TO_CHART,
+ "percentiles_to_chart": stats_module.MODERN_UI_PERCENTILES_TO_CHART,
}
else:
percentiles = {