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

worker: Minor improvement based on clang-tidy

上级 f5077c57
...@@ -281,11 +281,13 @@ namespace RTC ...@@ -281,11 +281,13 @@ namespace RTC
report->SetOctetCount(this->transmissionCounter.GetBytes()); report->SetOctetCount(this->transmissionCounter.GetBytes());
// Calculate RTP timestamp diff between now and last received RTP packet. // Calculate RTP timestamp diff between now and last received RTP packet.
uint32_t diffMs = static_cast<uint32_t>(now - this->maxPacketMs); auto diffMs = static_cast<uint32_t>(now - this->maxPacketMs);
uint32_t diffTs = diffMs * this->params.clockRate / 1000; uint32_t diffTs = diffMs * this->params.clockRate / 1000;
Utils::Time::Ntp ntp{}; Utils::Time::Ntp ntp{};
struct timeval unixTime; struct timeval unixTime
{
};
uint64_t unixTimeMs; uint64_t unixTimeMs;
gettimeofday(&unixTime, nullptr); gettimeofday(&unixTime, nullptr);
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论