diff options
author | MacroFake <falke.marco@gmail.com> | 2022-06-27 09:35:09 +0200 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-06-27 09:34:09 +0200 |
commit | fa956e7508986991008e2f6126ab307924b3f353 (patch) | |
tree | b6a593c38aae87152cf0263117f149aa7e3e9aba /src/rpc/net.cpp | |
parent | dde7205c576352a6052c1411d0fa8017e83d3ef4 (diff) | |
download | bitcoin-fa956e7508986991008e2f6126ab307924b3f353.tar.xz |
Replace CountSecondsDouble with Ticks<SecondsDouble>
Diffstat (limited to 'src/rpc/net.cpp')
-rw-r--r-- | src/rpc/net.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rpc/net.cpp b/src/rpc/net.cpp index 0a061f2451..fad92629c5 100644 --- a/src/rpc/net.cpp +++ b/src/rpc/net.cpp @@ -206,13 +206,13 @@ static RPCHelpMan getpeerinfo() obj.pushKV("conntime", count_seconds(stats.m_connected)); obj.pushKV("timeoffset", stats.nTimeOffset); if (stats.m_last_ping_time > 0us) { - obj.pushKV("pingtime", CountSecondsDouble(stats.m_last_ping_time)); + obj.pushKV("pingtime", Ticks<SecondsDouble>(stats.m_last_ping_time)); } if (stats.m_min_ping_time < std::chrono::microseconds::max()) { - obj.pushKV("minping", CountSecondsDouble(stats.m_min_ping_time)); + obj.pushKV("minping", Ticks<SecondsDouble>(stats.m_min_ping_time)); } if (fStateStats && statestats.m_ping_wait > 0s) { - obj.pushKV("pingwait", CountSecondsDouble(statestats.m_ping_wait)); + obj.pushKV("pingwait", Ticks<SecondsDouble>(statestats.m_ping_wait)); } obj.pushKV("version", stats.nVersion); // Use the sanitized form of subver here, to avoid tricksy remote peers from |