提交 a70fc156 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Cosmetic changes

上级 0e16087a
......@@ -715,7 +715,7 @@ class Consumer extends EnhancedEventEmitter
if (typeof interval !== 'number')
{
logger.error('enableStats() | Invalid interval provided');
logger.error('enableStats() | invalid interval provided');
return;
}
......@@ -762,9 +762,7 @@ class Consumer extends EnhancedEventEmitter
// Set minimum interval to DEFAULT_STATS_INTERVAL.
if (interval < DEFAULT_STATS_INTERVAL)
{
interval = DEFAULT_STATS_INTERVAL;
}
this._statsInterval = setInterval(() =>
{
......
......@@ -542,7 +542,7 @@ class Producer extends EnhancedEventEmitter
if (typeof interval !== 'number')
{
logger.error('enableStats() | Invalid interval provided');
logger.error('enableStats() | invalid interval provided');
return;
}
......@@ -574,9 +574,7 @@ class Producer extends EnhancedEventEmitter
// Set minimum interval to DEFAULT_STATS_INTERVAL.
if (interval < DEFAULT_STATS_INTERVAL)
{
interval = DEFAULT_STATS_INTERVAL;
}
this._statsInterval = setInterval(() =>
{
......
......@@ -393,7 +393,7 @@ class WebRtcTransport extends EnhancedEventEmitter
if (typeof interval !== 'number')
{
logger.error('enableStats() | Invalid interval provided');
logger.error('enableStats() | invalid interval provided');
return;
}
......@@ -422,9 +422,7 @@ class WebRtcTransport extends EnhancedEventEmitter
// Set minimum interval to DEFAULT_STATS_INTERVAL.
if (interval < DEFAULT_STATS_INTERVAL)
{
interval = DEFAULT_STATS_INTERVAL;
}
this._statsInterval = setInterval(() =>
{
......
......@@ -132,7 +132,7 @@ namespace RTC
auto it = this->mapProfileRtpStream.find(this->effectiveProfile);
MS_ASSERT(
it != this->mapProfileRtpStream.end(), "effective profile does not map to a rtp stream");
it != this->mapProfileRtpStream.end(), "effective profile does not map to a rtp stream");
auto inboundRtpStream = const_cast<RTC::RtpStream*>(it->second);
auto jsonInboundRtpStream = inboundRtpStream->GetStats();
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论