diff options
author | Ben Woosley <ben.woosley@gmail.com> | 2020-03-03 08:42:50 -0500 |
---|---|---|
committer | Ben Woosley <ben.woosley@gmail.com> | 2020-03-04 13:45:29 -0500 |
commit | 7a810b1d7a9d03818706dc94457dc3255f062796 (patch) | |
tree | 6879f95472c704bc48e85beaca23b91b330f1c46 /src/net.cpp | |
parent | e6fc63ec7ee637a4b533e4d7b22def05e74e1dff (diff) |
refactor: Convert ping wait 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 8177ca3e3b..d156450394 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -557,7 +557,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.m_min_ping_usec = nMinPingUsecTime; - stats.dPingWait = (((double)nPingUsecWait) / 1e6); + stats.m_ping_wait_usec = nPingUsecWait; // Leave string empty if addrLocal invalid (not filled in yet) CService addrLocalUnlocked = GetAddrLocal(); |