Fixes issue with gsm bars for remote participants are always full

This commit is contained in:
hristoterezov 2016-06-24 12:22:51 -05:00
parent 1d393f5786
commit 970e8c764c
1 changed files with 2 additions and 1 deletions

View File

@ -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],