aboutsummaryrefslogtreecommitdiff
path: root/src/timedata.cpp
diff options
context:
space:
mode:
authorPavel Janík <Pavel@Janik.cz>2014-12-15 11:06:15 +0100
committerPavel Janík <Pavel@Janik.cz>2014-12-15 11:06:15 +0100
commit26a6bae7537c73cb4b713293ce29b7c6d71a542d (patch)
tree674b4fd2b88216a6cc56eb1933ee043a4ccdd2ea /src/timedata.cpp
parent13c077c7cfe9f367c721f3d99924b3d568afb4d0 (diff)
Add time offset to getpeerinfo output
Diffstat (limited to 'src/timedata.cpp')
-rw-r--r--src/timedata.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/timedata.cpp b/src/timedata.cpp
index 59f7778db1..2192ed2eff 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;