* more finessing

This commit is contained in:
Seth Call 2015-08-22 04:49:55 -05:00
parent 13351da002
commit beaba84f06
1 changed files with 2 additions and 3 deletions

View File

@ -412,12 +412,11 @@
var attempt = getCurrentAttemptVideo();
if (!testSummary.video_final) {
testSummary.video_final = {reason: attempt.reason};
testSummary.video_final = {reason: attempt.reason, num_clients: attempt.num_clients};
}
// a score of '2' is a failure when we take error paths in this function. Because we alway decrement the num_clients by 1 (and < 2 is considered failure). Also , we start the testing at 2. so it's probably correct anyway
if (!testSummary.video_final.num_clients) {
testSummary.video_final.num_clients = 2;
testSummary.video_final.num_clients = attempt.num_clients;
}
var reason = testSummary.video_final.reason;