diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-01-02 17:47:08 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-01-02 17:54:21 +0100 |
commit | c986972ad77242664c41c5e6fe07214e84aadd82 (patch) | |
tree | ade772431c84c3e839b5cb03161d57505d4c2766 /src/timedata.cpp | |
parent | 40d65eb66d0865aa64c410c3eb970dafcad71851 (diff) | |
parent | 73caf47dfe9c398aac75b5f6bcd1e0a644479a46 (diff) |
Merge pull request #5476
73caf47 Display time offset in the debug window's Peers tab (Pavel Janík)
26a6bae Add time offset to getpeerinfo output (Pavel Janík)
Diffstat (limited to 'src/timedata.cpp')
-rw-r--r-- | src/timedata.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/timedata.cpp b/src/timedata.cpp index d04f3d2f78..c3e9c75f6e 100644 --- a/src/timedata.cpp +++ b/src/timedata.cpp @@ -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; |