瀏覽代碼

Fixes issue with gsm bars for remote participants are always full

master
hristoterezov 9 年之前
父節點
當前提交
970e8c764c
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. 2
    1
      modules/connectionquality/connectionquality.js

+ 2
- 1
modules/connectionquality/connectionquality.js 查看文件

@@ -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…
取消
儲存