From 05a4947b4ac2389ab62960264121144848160390 Mon Sep 17 00:00:00 2001 From: yuqing Date: Sat, 13 Sep 2014 23:13:23 +0800 Subject: [PATCH] add connection stats --- php_client/fastdfs_client.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/php_client/fastdfs_client.c b/php_client/fastdfs_client.c index 26a477b..64bfd5e 100644 --- a/php_client/fastdfs_client.c +++ b/php_client/fastdfs_client.c @@ -900,6 +900,21 @@ static void php_fdfs_tracker_list_groups_impl(INTERNAL_FUNCTION_PARAMETERS, \ pStorageStat = &(pStorage->stat); + add_assoc_long_ex(server_info_array, \ + "connection.alloc_count", \ + sizeof("connection.alloc_count"), \ + pStorageStat->connection.alloc_count); + + add_assoc_long_ex(server_info_array, \ + "connection.current_count", \ + sizeof("connection.current_count"), \ + pStorageStat->connection.current_count); + + add_assoc_long_ex(server_info_array, \ + "connection.max_count", \ + sizeof("connection.max_count"), \ + pStorageStat->connection.max_count); + add_assoc_long_ex(server_info_array, \ "total_upload_count", \ sizeof("total_upload_count"), \