From fda5bc8e56f7c531e27fe8b1ce99e345349e4494 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Mon, 14 May 2018 20:06:02 +0300 Subject: [PATCH] Add persistent connection count to servers resource The number of persisted connections was not shown in the server resource. --- server/core/server.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/server/core/server.cc b/server/core/server.cc index 8fed2ee90..1b1b7115f 100644 --- a/server/core/server.cc +++ b/server/core/server.cc @@ -1513,6 +1513,7 @@ static json_t* server_json_attributes(const SERVER* server) json_object_set_new(stats, "connections", json_integer(server->stats.n_current)); json_object_set_new(stats, "total_connections", json_integer(server->stats.n_connections)); + json_object_set_new(stats, "persistent_connections", json_integer(server->stats.n_persistent)); json_object_set_new(stats, "active_operations", json_integer(server->stats.n_current_ops)); json_object_set_new(stats, "routed_packets", json_integer(server->stats.packets));