mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Merge pull request #2273
0e8d60c0
cryptonote_protocol: fix recv/send idle time before handshake (moneromooo-monero)
This commit is contained in:
commit
1d093eff67
1 changed files with 2 additions and 2 deletions
|
@ -209,10 +209,10 @@ namespace cryptonote
|
|||
cnx.support_flags = support_flags;
|
||||
|
||||
cnx.recv_count = cntxt.m_recv_cnt;
|
||||
cnx.recv_idle_time = timestamp - cntxt.m_last_recv;
|
||||
cnx.recv_idle_time = timestamp - std::max(cntxt.m_started, cntxt.m_last_recv);
|
||||
|
||||
cnx.send_count = cntxt.m_send_cnt;
|
||||
cnx.send_idle_time = timestamp - cntxt.m_last_send;
|
||||
cnx.send_idle_time = timestamp - std::max(cntxt.m_started, cntxt.m_last_send);
|
||||
|
||||
cnx.state = get_protocol_state_string(cntxt.m_state);
|
||||
|
||||
|
|
Loading…
Reference in a new issue