Skip to content

Commit

Permalink
Merge pull request #1691 from aek/feature-chart-tooltip-custom-values
Browse files Browse the repository at this point in the history
fix stats values for chart tooltips
  • Loading branch information
heyman authored Jan 28, 2021
2 parents fb4d42d + 8280fbb commit 948715a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions locust/static/locust.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,11 @@ function updateStats() {
var total = report.stats[report.stats.length-1];
// update charts
stats_history["time"].push(new Date().toLocaleTimeString());
stats_history["user_count"].push(report.user_count);
stats_history["current_rps"].push(total.current_rps);
stats_history["current_fail_per_sec"].push(total.current_fail_per_sec);
stats_history["response_time_percentile_50"].push(report.current_response_time_percentile_50);
stats_history["response_time_percentile_95"].push(report.current_response_time_percentile_95);
stats_history["user_count"].push({"value": report.user_count});
stats_history["current_rps"].push({"value": total.current_rps, "users": report.user_count});
stats_history["current_fail_per_sec"].push({"value": total.current_fail_per_sec, "users": report.user_count});
stats_history["response_time_percentile_50"].push({"value": report.current_response_time_percentile_50, "users": report.user_count});
stats_history["response_time_percentile_95"].push({"value": report.current_response_time_percentile_95, "users": report.user_count});
update_stats_charts()
} else {
appearStopped();
Expand Down

0 comments on commit 948715a

Please sign in to comment.