From 48b2f5b96511c86dec12564117239a57635c9fbb Mon Sep 17 00:00:00 2001 From: Seth Call Date: Sun, 18 Jan 2015 20:51:27 -0600 Subject: [PATCH] * add value = 1 to series --- web/app/assets/javascripts/sessionModel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/assets/javascripts/sessionModel.js b/web/app/assets/javascripts/sessionModel.js index be9ecd270..92d77d2bb 100644 --- a/web/app/assets/javascripts/sessionModel.js +++ b/web/app/assets/javascripts/sessionModel.js @@ -774,12 +774,12 @@ if(participant) { if(participant.client.audio_established === null) { participant.client.audio_established = audioEstablished; - context.stats.write('client.audio_established.' + (audioEstablished ? 'success': 'failure'), {user_id: context.JK.currentUserId, name: context.JK.currentUserName, remote_user_id: participant.server.user.id, remote_name: participant.server.user.name}) + context.stats.write('client.audio_established.' + (audioEstablished ? 'success': 'failure'), {user_id: context.JK.currentUserId, name: context.JK.currentUserName, remote_user_id: participant.server.user.id, remote_name: participant.server.user.name, value: 1}) } else if(participant.client.audio_established === false && audioEstablished === true) { // this means the frontend had declared this audio failed, but later says it works. // this could mean our threshold of time to wait before audio is considered failed is too low, and needs tweaking - context.stats.write('client.audio_established.delayed', {user_id: context.JK.currentUserId, name: context.JK.currentUserName, remote_user_id: participant.server.user.id, remote_name: participant.server.user.name}) + context.stats.write('client.audio_established.delayed', {user_id: context.JK.currentUserId, name: context.JK.currentUserName, remote_user_id: participant.server.user.id, remote_name: participant.server.user.name, value: 1}) } } }