diff options
| author | Ben Woosley <[email protected]> | 2020-03-03 08:35:01 -0500 |
|---|---|---|
| committer | Ben Woosley <[email protected]> | 2020-03-04 13:44:25 -0500 |
| commit | b054c46977667953593819248c167545aa3e7a40 (patch) | |
| tree | 229182b06f83362f065d920e9accb1fbe4741393 /src/net.cpp | |
| parent | Merge #18168: httpserver: use own HTTP status codes (diff) | |
| download | discoin-b054c46977667953593819248c167545aa3e7a40.tar.xz discoin-b054c46977667953593819248c167545aa3e7a40.zip | |
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 cb4067e82..a1d1bf5cb 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); |