From 24524eb0fd00a00654b0601f8b2de3f57ad89f53 Mon Sep 17 00:00:00 2001 From: SChernykh <15806605+SChernykh@users.noreply.github.com> Date: Sun, 29 Dec 2024 15:09:52 +0100 Subject: [PATCH] API: `zmq_last_active` now shows seconds since last active --- src/p2pool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p2pool.cpp b/src/p2pool.cpp index 8850594..5e34ddf 100644 --- a/src/p2pool.cpp +++ b/src/p2pool.cpp @@ -1559,7 +1559,7 @@ void p2pool::api_update_network_stats() << "\",\"height\":" << mainnet_tip.height << ",\"reward\":" << mainnet_tip.reward << ",\"timestamp\":" << mainnet_tip.timestamp - << ",\"zmq_last_active\":" << zmq_last_active() + << ",\"zmq_last_active\":" << (seconds_since_epoch() - zmq_last_active()) << "}"; });