Переглянути джерело

fix(AvgRTPStatsReporter): peer count comparison

The peer count excludes the current user, so it should be 1 not 2.
tags/v0.0.2
paweldomas 8 роки тому
джерело
коміт
91f1a907a8
1 змінених файлів з 1 додано та 1 видалено
  1. 1
    1
      modules/statistics/AvgRTPStatsReporter.js

+ 1
- 1
modules/statistics/AvgRTPStatsReporter.js Переглянути файл

@@ -222,7 +222,7 @@ export default class AvgRTPStatsReporter {
222 222
         const isP2P = this._conference.isP2PActive();
223 223
         const peerCount = this._conference.getParticipants().length;
224 224
 
225
-        if (!isP2P && peerCount < 2) {
225
+        if (!isP2P && peerCount < 1) {
226 226
 
227 227
             // There's no point in collecting stats for a JVB conference of 1.
228 228
             // That happens for short period of time after everyone leaves

Завантаження…
Відмінити
Зберегти