* add value = 1 to series
This commit is contained in:
parent
8a6a9b224b
commit
48b2f5b965
|
|
@ -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})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue