Browse Source

cleanup: Renames a confusingly named variable.

dev1
Boris Grozev 9 years ago
parent
commit
691513de98
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      modules/statistics/RTPStatsCollector.js

+ 4
- 4
modules/statistics/RTPStatsCollector.js View File

@@ -243,7 +243,7 @@ function StatsCollector(
243 243
     this.baselineAudioLevelsReport = null;
244 244
     this.currentAudioLevelsReport = null;
245 245
     this.currentStatsReport = null;
246
-    this.baselineStatsReport = null;
246
+    this.previousStatsReport = null;
247 247
     this.audioLevelsIntervalId = null;
248 248
     this.eventEmitter = eventEmitter;
249 249
     this.conferenceStats = new ConferenceStats();
@@ -363,7 +363,7 @@ StatsCollector.prototype.start = function (startAudioLevelStats) {
363 363
                             logger.error("Unsupported key:" + e, e);
364 364
                         }
365 365
 
366
-                        self.baselineStatsReport = self.currentStatsReport;
366
+                        self.previousStatsReport = self.currentStatsReport;
367 367
                     },
368 368
                     self.errorCallback
369 369
                 );
@@ -502,7 +502,7 @@ StatsCollector.prototype._defineGetStatValueMethod = function (keys) {
502 502
  * Stats processing logic.
503 503
  */
504 504
 StatsCollector.prototype.processStatsReport = function () {
505
-    if (!this.baselineStatsReport) {
505
+    if (!this.previousStatsReport) {
506 506
         return;
507 507
     }
508 508
 
@@ -564,7 +564,7 @@ StatsCollector.prototype.processStatsReport = function () {
564 564
             continue;
565 565
         }
566 566
 
567
-        var before = this.baselineStatsReport[idx];
567
+        var before = this.previousStatsReport[idx];
568 568
         var ssrc = getStatValue(now, 'ssrc');
569 569
         if (!before || !ssrc) {
570 570
             continue;

Loading…
Cancel
Save