Add time offset to getpeerinfo output

This commit is contained in:
Pavel Janík
2014-12-15 11:06:15 +01:00
parent 13c077c7cf
commit 26a6bae753
5 changed files with 10 additions and 4 deletions

View File

@@ -40,10 +40,8 @@ static int64_t abs64(int64_t n)
return (n >= 0 ? n : -n);
}
void AddTimeData(const CNetAddr& ip, int64_t nTime)
void AddTimeData(const CNetAddr& ip, int64_t nOffsetSample)
{
int64_t nOffsetSample = nTime - GetTime();
LOCK(cs_nTimeOffset);
// Ignore duplicates
static set<CNetAddr> setKnown;