Browse Source

cleanup: Renames a confusingly named field.

dev1
Boris Grozev 9 years ago
parent
commit
7e7ee9f7b7
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      modules/statistics/RTPStatsCollector.js

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

@@ -110,7 +110,7 @@ function PeerStats() {
110 110
         download: 0,
111 111
         upload: 0
112 112
     };
113
-    this.ssrc2resolution = {};
113
+    this.resolution = {};
114 114
 }
115 115
 
116 116
 /**
@@ -128,7 +128,7 @@ PeerStats.prototype.setSsrcLoss = function (lossRate) {
128 128
  * @param resolution new resolution value to be set.
129 129
  */
130 130
 PeerStats.prototype.setSsrcResolution = function (resolution) {
131
-    this.ssrc2resolution = resolution || {};
131
+    this.resolution = resolution || {};
132 132
 };
133 133
 
134 134
 /**
@@ -683,7 +683,7 @@ StatsCollector.prototype.processStatsReport = function () {
683 683
             ssrcStats.resetSsrcBitrate();
684 684
 
685 685
             // collect resolutions
686
-            resolutions[ssrc] = ssrcStats.ssrc2resolution;
686
+            resolutions[ssrc] = ssrcStats.resolution;
687 687
         },
688 688
         this
689 689
     );

Loading…
Cancel
Save