diff options
author | Ben Woosley <ben.woosley@gmail.com> | 2020-03-03 08:35:01 -0500 |
---|---|---|
committer | Ben Woosley <ben.woosley@gmail.com> | 2020-03-04 13:44:25 -0500 |
commit | b054c46977667953593819248c167545aa3e7a40 (patch) | |
tree | 229182b06f83362f065d920e9accb1fbe4741393 /src/net.cpp | |
parent | ac5c5d0162a963be6fbaa53261c01705436a65f3 (diff) |
refactor: Convert 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 cb4067e825..a1d1bf5cbf 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -555,7 +555,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.dPingTime = (((double)nPingUsecTime) / 1e6); + stats.m_ping_usec = nPingUsecTime; stats.dMinPing = (((double)nMinPingUsecTime) / 1e6); stats.dPingWait = (((double)nPingUsecWait) / 1e6); |