aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorBen Woosley <ben.woosley@gmail.com>2020-03-03 08:35:01 -0500
committerBen Woosley <ben.woosley@gmail.com>2020-03-04 13:44:25 -0500
commitb054c46977667953593819248c167545aa3e7a40 (patch)
tree229182b06f83362f065d920e9accb1fbe4741393 /src/net.cpp
parentac5c5d0162a963be6fbaa53261c01705436a65f3 (diff)
downloadbitcoin-b054c46977667953593819248c167545aa3e7a40.tar.xz
refactor: Convert 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 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);