From 970e8c764c759f646cec76e2f0aba37e2bb5f9dc Mon Sep 17 00:00:00 2001 From: hristoterezov Date: Fri, 24 Jun 2016 12:22:51 -0500 Subject: [PATCH] Fixes issue with gsm bars for remote participants are always full --- modules/connectionquality/connectionquality.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/connectionquality/connectionquality.js b/modules/connectionquality/connectionquality.js index a2c5d61c5..390493703 100644 --- a/modules/connectionquality/connectionquality.js +++ b/modules/connectionquality/connectionquality.js @@ -99,7 +99,8 @@ export default { var newVal = 100 - data.packetLoss.total; var oldVal = remoteConnectionQuality[id]; - remoteConnectionQuality[id] = calculateQuality(newVal, oldVal); + remoteConnectionQuality[id] = calculateQuality(newVal, oldVal || 100); + console.debug(newVal, oldVal, remoteConnectionQuality[id]); eventEmitter.emit( CQEvents.REMOTESTATS_UPDATED, id, remoteConnectionQuality[id],