diff options
author | Pavel Janík <Pavel@Janik.cz> | 2014-12-15 11:06:15 +0100 |
---|---|---|
committer | Pavel Janík <Pavel@Janik.cz> | 2014-12-15 11:06:15 +0100 |
commit | 26a6bae7537c73cb4b713293ce29b7c6d71a542d (patch) | |
tree | 674b4fd2b88216a6cc56eb1933ee043a4ccdd2ea /src/net.cpp | |
parent | 13c077c7cfe9f367c721f3d99924b3d568afb4d0 (diff) |
Add time offset to getpeerinfo output
Diffstat (limited to 'src/net.cpp')
-rw-r--r-- | src/net.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net.cpp b/src/net.cpp index 42b3c30fb7..95524a8b0f 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -523,6 +523,7 @@ void CNode::copyStats(CNodeStats &stats) X(nLastSend); X(nLastRecv); X(nTimeConnected); + X(nTimeOffset); X(addrName); X(nVersion); X(cleanSubVer); @@ -1934,6 +1935,7 @@ CNode::CNode(SOCKET hSocketIn, CAddress addrIn, std::string addrNameIn, bool fIn nSendBytes = 0; nRecvBytes = 0; nTimeConnected = GetTime(); + nTimeOffset = 0; addr = addrIn; addrName = addrNameIn == "" ? addr.ToStringIPPort() : addrNameIn; nVersion = 0; |