浏览代码

cleanup code related to unused config callStatsThreshold.

master
Jaya Allamsetty 2 年前
父节点
当前提交
55b27b1472
共有 1 个文件被更改,包括 1 次插入8 次删除
  1. 1
    8
      JitsiConference.js

+ 1
- 8
JitsiConference.js 查看文件

458
     this.receiveVideoController = new ReceiveVideoController(this, this.rtc);
458
     this.receiveVideoController = new ReceiveVideoController(this, this.rtc);
459
     this.sendVideoController = new SendVideoController(this, this.rtc);
459
     this.sendVideoController = new SendVideoController(this, this.rtc);
460
 
460
 
461
-    // Add the ability to enable callStats only on a percentage of users based on config.js settings.
462
-    let enableCallStats = true;
463
-
464
-    if (config.testing && config.testing.callStatsThreshold) {
465
-        enableCallStats = (Math.random() * 100) <= config.testing.callStatsThreshold;
466
-    }
467
-
468
     if (!this.statistics) {
461
     if (!this.statistics) {
469
         this.statistics = new Statistics(this.xmpp, {
462
         this.statistics = new Statistics(this.xmpp, {
470
             aliasName: this._statsCurrentId,
463
             aliasName: this._statsCurrentId,
475
             callStatsID: config.callStatsID,
468
             callStatsID: config.callStatsID,
476
             callStatsSecret: config.callStatsSecret,
469
             callStatsSecret: config.callStatsSecret,
477
             callStatsApplicationLogsDisabled: config.callStatsApplicationLogsDisabled,
470
             callStatsApplicationLogsDisabled: config.callStatsApplicationLogsDisabled,
478
-            enableCallStats,
471
+            enableCallStats: true,
479
             roomName: this.options.name,
472
             roomName: this.options.name,
480
             applicationName: config.applicationName,
473
             applicationName: config.applicationName,
481
             configParams: config.callStatsConfigParams
474
             configParams: config.callStatsConfigParams

正在加载...
取消
保存