Record nMinPingUsecTime

This commit is contained in:
Patrick Strateman
2015-08-13 02:31:46 -07:00
committed by Taylor Hornby
parent bd80ec0d23
commit e279e5f90a
2 changed files with 3 additions and 0 deletions

View File

@@ -4937,6 +4937,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
if (pingUsecTime > 0) {
// Successful ping time measurement, replace previous
pfrom->nPingUsecTime = pingUsecTime;
pfrom->nMinPingUsecTime = std::min(pfrom->nMinPingUsecTime, pingUsecTime);
} else {
// This should never happen
sProblem = "Timing mishap";