Browse Source

Fixes issue with gsm bars for remote participants are always full

master
hristoterezov 9 years ago
parent
commit
970e8c764c
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      modules/connectionquality/connectionquality.js

+ 2
- 1
modules/connectionquality/connectionquality.js View File

@@ -99,7 +99,8 @@ export default {
99 99
 
100 100
         var newVal = 100 - data.packetLoss.total;
101 101
         var oldVal = remoteConnectionQuality[id];
102
-        remoteConnectionQuality[id] = calculateQuality(newVal, oldVal);
102
+        remoteConnectionQuality[id] = calculateQuality(newVal, oldVal || 100);
103
+        console.debug(newVal, oldVal, remoteConnectionQuality[id]);
103 104
 
104 105
         eventEmitter.emit(
105 106
             CQEvents.REMOTESTATS_UPDATED, id, remoteConnectionQuality[id],

Loading…
Cancel
Save