mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Report minimum ping time in getpeerinfo
This commit is contained in:
parent
69dc5b51a0
commit
a6eb4ba38b
3 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue