Add persistent connection count to servers resource
The number of persisted connections was not shown in the server resource.
This commit is contained in:
@ -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));
|
||||
|
||||
|
Reference in New Issue
Block a user