* add value = 1 to series

This commit is contained in:
Seth Call 2015-01-18 20:51:27 -06:00
parent 8a6a9b224b
commit 48b2f5b965
1 changed files with 2 additions and 2 deletions

View File

@ -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})
}
}
}