diff options
author | stickies-v <stickies-v@protonmail.com> | 2024-02-03 17:15:41 +0000 |
---|---|---|
committer | stickies-v <stickies-v@protonmail.com> | 2024-04-10 16:15:46 +0200 |
commit | 55361a15d1aa6984051441bce88112000688fb43 (patch) | |
tree | 28eab9ca3974271e6ae563c186cc8f687b4522c7 /src/rpc | |
parent | 038fd979effb54ee76ce1b7cf078e920c652326a (diff) | |
download | bitcoin-55361a15d1aa6984051441bce88112000688fb43.tar.xz |
[net processing] Use std::chrono for type-safe time offsets
Diffstat (limited to 'src/rpc')
-rw-r--r-- | src/rpc/net.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/net.cpp b/src/rpc/net.cpp index 14eae8c5df..176cf0e404 100644 --- a/src/rpc/net.cpp +++ b/src/rpc/net.cpp @@ -239,7 +239,7 @@ static RPCHelpMan getpeerinfo() obj.pushKV("bytessent", stats.nSendBytes); obj.pushKV("bytesrecv", stats.nRecvBytes); obj.pushKV("conntime", count_seconds(stats.m_connected)); - obj.pushKV("timeoffset", statestats.time_offset); + obj.pushKV("timeoffset", Ticks<std::chrono::seconds>(statestats.time_offset)); if (stats.m_last_ping_time > 0us) { obj.pushKV("pingtime", Ticks<SecondsDouble>(stats.m_last_ping_time)); } |