fix overflow in utp logging

This commit is contained in:
Arvid Norberg 2011-11-05 18:28:32 +00:00
parent 4a6e012a5f
commit 8c0672a9b7
1 changed files with 1 additions and 1 deletions

View File

@ -2627,7 +2627,7 @@ bool utp_socket_impl::incoming_packet(char const* buf, int size
, m_bytes_in_flight , m_bytes_in_flight
, 0.f // float(scaled_gain) , 0.f // float(scaled_gain)
, m_rtt.mean() , m_rtt.mean()
, int(m_cwnd * 1000 / (m_rtt.mean()?m_rtt.mean():50)) >> 16 , int((m_cwnd * 1000 / (m_rtt.mean()?m_rtt.mean():50)) >> 16)
, 0 , 0
, m_adv_wnd , m_adv_wnd
, packet_timeout() , packet_timeout()