File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -628,6 +628,7 @@ void CNode::copyStats(CNodeStats &stats)
628
628
629
629
// 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 :)
630
630
stats.dPingTime = (((double )nPingUsecTime) / 1e6 );
631
+ stats.dPingMin = (((double )nMinPingUsecTime) / 1e6 );
631
632
stats.dPingWait = (((double )nPingUsecWait) / 1e6 );
632
633
633
634
// Leave string empty if addrLocal invalid (not filled in yet)
Original file line number Diff line number Diff line change @@ -189,6 +189,7 @@ class CNodeStats
189
189
bool fWhitelisted ;
190
190
double dPingTime;
191
191
double dPingWait;
192
+ double dPingMin;
192
193
std::string addrLocal;
193
194
};
194
195
Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ UniValue getpeerinfo(const UniValue& params, bool fHelp)
96
96
" \" conntime\" : ttt, (numeric) The connection time in seconds since epoch (Jan 1 1970 GMT)\n "
97
97
" \" timeoffset\" : ttt, (numeric) The time offset in seconds\n "
98
98
" \" pingtime\" : n, (numeric) ping time\n "
99
+ " \" minping\" : n, (numeric) minimum observed ping time\n "
99
100
" \" pingwait\" : n, (numeric) ping wait\n "
100
101
" \" version\" : v, (numeric) The peer version, such as 7001\n "
101
102
" \" subver\" : \" /Satoshi:0.8.5/\" , (string) The string version\n "
@@ -139,6 +140,7 @@ UniValue getpeerinfo(const UniValue& params, bool fHelp)
139
140
obj.push_back (Pair (" conntime" , stats.nTimeConnected ));
140
141
obj.push_back (Pair (" timeoffset" , stats.nTimeOffset ));
141
142
obj.push_back (Pair (" pingtime" , stats.dPingTime ));
143
+ obj.push_back (Pair (" minping" , stats.dPingMin ));
142
144
if (stats.dPingWait > 0.0 )
143
145
obj.push_back (Pair (" pingwait" , stats.dPingWait ));
144
146
obj.push_back (Pair (" version" , stats.nVersion ));
You can’t perform that action at this time.
0 commit comments