diff options
author | Ben Woosley <ben.woosley@gmail.com> | 2020-03-03 08:40:29 -0500 |
---|---|---|
committer | Ben Woosley <ben.woosley@gmail.com> | 2020-03-04 13:44:57 -0500 |
commit | e6fc63ec7ee637a4b533e4d7b22def05e74e1dff (patch) | |
tree | 5025327bd248217f69964ac90dfe182a7e181012 /src/net.cpp | |
parent | b054c46977667953593819248c167545aa3e7a40 (diff) |
refactor: Convert min ping time from double to int64_t
Diffstat (limited to 'src/net.cpp')
-rw-r--r-- | src/net.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp index a1d1bf5cbf..8177ca3e3b 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -556,7 +556,7 @@ void CNode::copyStats(CNodeStats &stats, const std::vector<bool> &m_asmap) // Raw ping time is in microseconds, but show it to user as whole seconds (Bitcoin users should be well used to small numbers with many decimal places by now :) stats.m_ping_usec = nPingUsecTime; - stats.dMinPing = (((double)nMinPingUsecTime) / 1e6); + stats.m_min_ping_usec = nMinPingUsecTime; stats.dPingWait = (((double)nPingUsecWait) / 1e6); // Leave string empty if addrLocal invalid (not filled in yet) |