diff options
Diffstat (limited to 'src/rpc/net.cpp')
-rw-r--r-- | src/rpc/net.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rpc/net.cpp b/src/rpc/net.cpp index c1b350526d..e8ae458c57 100644 --- a/src/rpc/net.cpp +++ b/src/rpc/net.cpp @@ -169,8 +169,8 @@ static UniValue getpeerinfo(const JSONRPCRequest& request) obj.pushKV("pingtime", stats.m_ping_usec / 1e6); if (stats.m_min_ping_usec < std::numeric_limits<int64_t>::max()) obj.pushKV("minping", stats.m_min_ping_usec / 1e6); - if (stats.dPingWait > 0.0) - obj.pushKV("pingwait", stats.dPingWait); + if (stats.m_ping_wait_usec > 0) + obj.pushKV("pingwait", stats.m_ping_wait_usec / 1e6); obj.pushKV("version", stats.nVersion); // Use the sanitized form of subver here, to avoid tricksy remote peers from // corrupting or modifying the JSON output by putting special characters in |