Просмотр исходного кода

cleanup: Renames a confusingly named variable and corrects the documentation.

release-8443
Boris Grozev 9 лет назад
Родитель
Сommit
a60b9aa0cb
1 измененных файлов: 4 добавлений и 5 удалений
  1. 4
    5
      modules/statistics/RTPStatsCollector.js

+ 4
- 5
modules/statistics/RTPStatsCollector.js Просмотреть файл

@@ -114,12 +114,11 @@ function PeerStats() {
114 114
 }
115 115
 
116 116
 /**
117
- * Sets packets loss rate for given <tt>ssrc</tt> that belong to the peer
118
- * represented by this instance.
119
- * @param lossRate new packet loss rate value to be set.
117
+ * Sets the "loss" object.
118
+ * @param loss the value to set.
120 119
  */
121
-PeerStats.prototype.setSsrcLoss = function (lossRate) {
122
-    this.loss = lossRate || {};
120
+PeerStats.prototype.setSsrcLoss = function (loss) {
121
+    this.loss = loss || {};
123 122
 };
124 123
 
125 124
 /**

Загрузка…
Отмена
Сохранить