Skip to content

Commit

Permalink
server: fix summary stats update
Browse files Browse the repository at this point in the history
We need to re-request summary stats regardless of whether we failed or
not

Signed-off-by: Quentin Young <qlyoung@qlyoung.net>
  • Loading branch information
qlyoung committed May 14, 2020
1 parent a7fe32f commit e827953
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docker-images/lagopus-server/templates/jobs.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,16 @@ <h6 class="m-0 font-weight-bold text-primary">Summary</h6>
$("#summary_live_fuzzers").text(Math.ceil(data[data.length - 1]['alive']));
$("#summary_paths").text(Math.ceil(data[data.length - 1]['total_paths']));
$("#summary_execs").text(Math.ceil(data[data.length - 1]['execs']));
if (data["status"] != "Complete")
setTimeout(update_summary, 15000);
}
});
if (data["status"] == "Complete") {
$("#summary_status").removeClass("badge-primary");
$("#summary_status").addClass("badge-success");
}
},
complete: function(xhr, textStatus) {
if (!('status' in xhr.responseJSON) || xhr.responseJSON["status"] != "Complete")
setTimeout(update_summary, 5000);
}
});
}
Expand Down

0 comments on commit e827953

Please sign in to comment.