Report minimum ping time in getpeerinfo

This commit is contained in:
Matt Corallo
2015-09-03 13:06:13 -07:00
parent 69dc5b51a0
commit a6eb4ba38b
3 changed files with 4 additions and 0 deletions

View File

@@ -628,6 +628,7 @@ void CNode::copyStats(CNodeStats &stats)
// 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.dPingMin = (((double)nMinPingUsecTime) / 1e6);
stats.dPingWait = (((double)nPingUsecWait) / 1e6);
// Leave string empty if addrLocal invalid (not filled in yet)