From 00b6dabc782ccd64acdc699d56bf842b96a35aad Mon Sep 17 00:00:00 2001 From: SChernykh <15806605+SChernykh@users.noreply.github.com> Date: Sun, 29 Dec 2024 12:56:32 +0100 Subject: [PATCH] API: added ZMQ last active to `local/p2p` --- src/p2p_server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p2p_server.cpp b/src/p2p_server.cpp index ab659ed..57fddeb 100644 --- a/src/p2p_server.cpp +++ b/src/p2p_server.cpp @@ -1425,7 +1425,7 @@ void P2PServer::api_update_local_stats() } } - s << "],\"uptime\":" << cur_time - m_pool->start_time() << '}'; + s << "],\"uptime\":" << cur_time - m_pool->start_time() << ",\"zmq_last_active\":" << (seconds_since_epoch() - m_pool->zmq_last_active()) << '}'; }); }