diff options
author | rbrunner7 <rbrunner@dreamshare.ch> | 2017-07-24 18:58:39 +0200 |
---|---|---|
committer | rbrunner7 <rbrunner@dreamshare.ch> | 2017-07-24 18:58:39 +0200 |
commit | f1b76c84240a0740aac63ebf83d675b7f152ef75 (patch) | |
tree | 2aea5e401a5968b730452c4954aad0e66c4d361b | |
parent | Merge pull request #2159 (diff) | |
download | monero-f1b76c84240a0740aac63ebf83d675b7f152ef75.tar.xz |
cryptonote_protocol: Set send_idle_time in connection_info correctly
-rw-r--r-- | src/cryptonote_protocol/cryptonote_protocol_handler.inl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_protocol/cryptonote_protocol_handler.inl b/src/cryptonote_protocol/cryptonote_protocol_handler.inl index c5bc834ad..3dfe86fe1 100644 --- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl +++ b/src/cryptonote_protocol/cryptonote_protocol_handler.inl @@ -208,7 +208,7 @@ namespace cryptonote cnx.recv_idle_time = timestamp - cntxt.m_last_recv; cnx.send_count = cntxt.m_send_cnt; - cnx.send_idle_time = timestamp; + cnx.send_idle_time = timestamp - cntxt.m_last_send; cnx.state = get_protocol_state_string(cntxt.m_state); |