Skip to content

Commit

Permalink
Merge pull request #381 from KashifSaadat/bug/slave-count-fix
Browse files Browse the repository at this point in the history
[#62] Correctly update slave count when drops below 1.
  • Loading branch information
Markus Thurlin committed Feb 15, 2016
2 parents ae111cb + 5420713 commit 546017e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locust/static/locust.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function updateStats() {
$("#status_text").html(report.state);
$("#userCount").html(report.user_count);

if (report.slave_count)
if (typeof report.slave_count !== "undefined")
$("#slaveCount").html(report.slave_count)

$('#stats tbody').empty();
Expand Down

0 comments on commit 546017e

Please sign in to comment.