aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorBen Woosley <ben.woosley@gmail.com>2020-03-03 08:40:29 -0500
committerBen Woosley <ben.woosley@gmail.com>2020-03-04 13:44:57 -0500
commite6fc63ec7ee637a4b533e4d7b22def05e74e1dff (patch)
tree5025327bd248217f69964ac90dfe182a7e181012 /src/net.cpp
parentb054c46977667953593819248c167545aa3e7a40 (diff)
downloadbitcoin-e6fc63ec7ee637a4b533e4d7b22def05e74e1dff.tar.xz
refactor: Convert min ping time from double to int64_t
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp2
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)