diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-08-07 15:08:49 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-08-07 15:08:49 +0200 |
commit | 58621e3f652dfe018de0ae28b438f4e87020a507 (patch) | |
tree | efe0b6c8ed802e58190e0e1204eb0b4e833f255a /src | |
parent | Merge pull request #2198 (diff) | |
parent | cryptonote_protocol: Set send_idle_time in connection_info correctly (diff) | |
download | monero-58621e3f652dfe018de0ae28b438f4e87020a507.tar.xz |
Merge pull request #2200
f1b76c84 cryptonote_protocol: Set send_idle_time in connection_info correctly (rbrunner7)
Diffstat (limited to 'src')
-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); |