mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
refactor: Convert min ping time from double to int64_t
This commit is contained in:
@@ -167,8 +167,8 @@ static UniValue getpeerinfo(const JSONRPCRequest& request)
|
||||
obj.pushKV("timeoffset", stats.nTimeOffset);
|
||||
if (stats.m_ping_usec > 0)
|
||||
obj.pushKV("pingtime", stats.m_ping_usec / 1e6);
|
||||
if (stats.dMinPing < static_cast<double>(std::numeric_limits<int64_t>::max())/1e6)
|
||||
obj.pushKV("minping", stats.dMinPing);
|
||||
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);
|
||||
obj.pushKV("version", stats.nVersion);
|
||||
|
||||
Reference in New Issue
Block a user