forked from premiere/premiere-libtorrent
fix typo in peer_connection
This commit is contained in:
parent
5e54d13dec
commit
40559fa564
|
@ -2488,7 +2488,7 @@ namespace libtorrent
|
||||||
// the callback of the send operation when we sent this
|
// the callback of the send operation when we sent this
|
||||||
// request hasn't come back yet, and we're already
|
// request hasn't come back yet, and we're already
|
||||||
// receiving the response from it. Count the rtt as 0.
|
// receiving the response from it. Count the rtt as 0.
|
||||||
int rtt = (i->byte_offset >= 0) ? 0
|
int rtt = (i->send_buffer_offset >= 0) ? 0
|
||||||
: int(total_milliseconds(time_now_hires() - i->request_time));
|
: int(total_milliseconds(time_now_hires() - i->request_time));
|
||||||
m_rtt.add_sample(rtt);
|
m_rtt.add_sample(rtt);
|
||||||
#if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_ERROR_LOGGING
|
#if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_ERROR_LOGGING
|
||||||
|
|
Loading…
Reference in New Issue