Fix clang compilation issues
This commit is contained in:
@@ -149,14 +149,14 @@ TcpRateLinux::CalculateAppLimited (uint32_t cWnd, uint32_t in_flight,
|
||||
&& in_flight < cWnd // We are not limited by CWND.
|
||||
&& lostOut <= retransOut) // All lost packets have been retransmitted.
|
||||
{
|
||||
m_rate.m_appLimited = std::max (m_rate.m_delivered + in_flight, 1UL);
|
||||
m_rate.m_appLimited = std::max<uint32_t> (m_rate.m_delivered + in_flight, 1);
|
||||
m_rateTrace (m_rate);
|
||||
}
|
||||
|
||||
// m_appLimited will be reset once in GenerateSample, if it has to be.
|
||||
// else
|
||||
// {
|
||||
// m_rate.m_appLimited = 0U;
|
||||
// m_rate.m_appLimited = 0;
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
@@ -62,8 +62,6 @@ private:
|
||||
Time m_deliveredTime;
|
||||
SequenceNumber32 m_tailSeq;
|
||||
SequenceNumber32 m_nextTx;
|
||||
uint32_t m_lostOut;
|
||||
uint32_t m_retransOut;
|
||||
uint32_t m_testCase;
|
||||
std::vector <TcpTxItem *> m_skbs;
|
||||
};
|
||||
@@ -79,8 +77,6 @@ TcpRateLinuxBasicTest::TcpRateLinuxBasicTest (uint32_t cWnd, SequenceNumber32 ta
|
||||
m_deliveredTime (Seconds (0)),
|
||||
m_tailSeq (tailSeq),
|
||||
m_nextTx (nextTx),
|
||||
m_lostOut (lostOut),
|
||||
m_retransOut (retransOut),
|
||||
m_testCase (testCase)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user