Explorar el Código

Merge pull request #708 from jitsi/gsm_bars_fix

Fixes issue with gsm bars for remote participants are always full
j8
Дамян Минков hace 8 años
padre
commit
702b177e06
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      modules/connectionquality/connectionquality.js

+ 1
- 1
modules/connectionquality/connectionquality.js Ver fichero

@@ -99,7 +99,7 @@ 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 103
 
104 104
         eventEmitter.emit(
105 105
             CQEvents.REMOTESTATS_UPDATED, id, remoteConnectionQuality[id],

Loading…
Cancelar
Guardar