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

cosmetic

上级 1be3f4f9
......@@ -52,7 +52,7 @@ namespace RTC
uint16_t sequenceNumber; // Wide sequence number.
int16_t delta{ 0 }; // Delta.
bool received{ false }; // Packet received or not.
int32_t receivedAtMs{ 0 }; // Received time (ms) in remote timestamp reference.
int64_t receivedAtMs{ 0 }; // Received time (ms) in remote timestamp reference.
};
public:
......
......@@ -243,7 +243,7 @@ namespace RTC
if (packetResult.received)
{
MS_DUMP(
" seq:%" PRIu16 ", received:yes, receivedAtMs:%" PRIi32,
" seq:%" PRIu16 ", received:yes, receivedAtMs:%" PRIi64,
packetResult.sequenceNumber,
packetResult.receivedAtMs);
}
......@@ -431,7 +431,7 @@ namespace RTC
}
size_t deltaIdx{ 0u };
int32_t currentReceivedAtMs = this->referenceTime * 64;
int64_t currentReceivedAtMs = static_cast<int64_t>(this->referenceTime * 64);
for (size_t idx{ 0u }; idx < packetResults.size(); ++idx)
{
......
......@@ -110,16 +110,12 @@ namespace RTC
if (!sentInfo.isProbation)
{
this->cummulativeResult.AddPacket(
sentInfo.size,
static_cast<int64_t>(sentInfo.sentAtMs),
static_cast<int64_t>(result.receivedAtMs));
sentInfo.size, static_cast<int64_t>(sentInfo.sentAtMs), result.receivedAtMs);
}
else
{
this->probationCummulativeResult.AddPacket(
sentInfo.size,
static_cast<int64_t>(sentInfo.sentAtMs),
static_cast<int64_t>(result.receivedAtMs));
sentInfo.size, static_cast<int64_t>(sentInfo.sentAtMs), result.receivedAtMs);
}
}
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论