diff options
author | Pieter Wuille <pieter@wuille.net> | 2020-10-07 19:40:42 -0700 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2020-10-08 01:04:29 -0700 |
commit | b6834e312a6a7bb395ec7266bc9469384639df96 (patch) | |
tree | 731dd3a10ba0cd8b3a134e49085c671699e5a088 /src/net_processing.cpp | |
parent | ec3916f40a3fc644ecbbaaddef6258937c7fcfbc (diff) |
Avoid 'timing mishap' warnings when mocking
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r-- | src/net_processing.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 631981217b..490ae8db82 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -3637,7 +3637,7 @@ void PeerManager::ProcessMessage(CNode& pfrom, const std::string& msg_type, CDat // Matching pong received, this ping is no longer outstanding bPingFinished = true; const auto ping_time = ping_end - pfrom.m_ping_start.load(); - if (ping_time.count() > 0) { + if (ping_time.count() >= 0) { // Successful ping time measurement, replace previous pfrom.nPingUsecTime = count_microseconds(ping_time); pfrom.nMinPingUsecTime = std::min(pfrom.nMinPingUsecTime.load(), count_microseconds(ping_time)); |