From beaba84f062018fbfc5a6f0621f5094f25b357ea Mon Sep 17 00:00:00 2001 From: Seth Call Date: Sat, 22 Aug 2015 04:49:55 -0500 Subject: [PATCH] * more finessing --- web/app/assets/javascripts/networkTestHelper.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/web/app/assets/javascripts/networkTestHelper.js b/web/app/assets/javascripts/networkTestHelper.js index 2e1c82e95..64de82b54 100644 --- a/web/app/assets/javascripts/networkTestHelper.js +++ b/web/app/assets/javascripts/networkTestHelper.js @@ -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;