Changeset 12140
- Timestamp:
- Mar 12, 2011, 10:45:14 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/third-party/libutp/utp.cpp
r12117 r12140 1894 1894 int seq = conn->seq_nr - conn->cur_window_packets + i; 1895 1895 OutgoingPacket *pkt = (OutgoingPacket*)conn->outbuf.get(seq); 1896 int64 rtt;1897 1896 if (pkt == 0 || pkt->transmissions == 0) continue; 1898 1897 assert((int)(pkt->payload) >= 0); 1899 1898 acked_bytes += pkt->payload; 1900 rtt = UTP_GetMicroseconds() - pkt->time_sent; 1901 if(rtt < 0) { 1902 LOG_UTP("UTP_GetMicroseconds decreased (%ld > %ld). " 1903 "This should not happen.", 1904 (long)pkt->time_sent, 1905 (long)(pkt->time_sent + rtt)); 1906 rtt = 0; 1907 } 1908 min_rtt = min<int64>(min_rtt, rtt); 1899 min_rtt = min<int64>(min_rtt, UTP_GetMicroseconds() - pkt->time_sent); 1909 1900 } 1910 1901
Note: See TracChangeset
for help on using the changeset viewer.