refactor: Convert ping time from double to int64_t

This commit is contained in:
Ben Woosley
2020-03-03 08:35:01 -05:00
parent ac5c5d0162
commit b054c46977
6 changed files with 13 additions and 5 deletions

View File

@@ -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);