Skip to content

Commit b6834e3

Browse files
committed
Avoid 'timing mishap' warnings when mocking
1 parent ec3916f commit b6834e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net_processing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3637,7 +3637,7 @@ void PeerManager::ProcessMessage(CNode& pfrom, const std::string& msg_type, CDat
36373637
// Matching pong received, this ping is no longer outstanding
36383638
bPingFinished = true;
36393639
const auto ping_time = ping_end - pfrom.m_ping_start.load();
3640-
if (ping_time.count() > 0) {
3640+
if (ping_time.count() >= 0) {
36413641
// Successful ping time measurement, replace previous
36423642
pfrom.nPingUsecTime = count_microseconds(ping_time);
36433643
pfrom.nMinPingUsecTime = std::min(pfrom.nMinPingUsecTime.load(), count_microseconds(ping_time));

0 commit comments

Comments
 (0)