aboutsummaryrefslogtreecommitdiff
path: root/src/main.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/main.cpp
parent13c077c7cfe9f367c721f3d99924b3d568afb4d0 (diff)
Add time offset to getpeerinfo output
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 7533c32614..d917c6e0ea 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -3450,7 +3450,9 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
pfrom->nStartingHeight, addrMe.ToString(), pfrom->id,
remoteAddr);
- AddTimeData(pfrom->addr, nTime);
+ int64_t nTimeOffset = nTime - GetTime();
+ pfrom->nTimeOffset = nTimeOffset;
+ AddTimeData(pfrom->addr, nTimeOffset);
}