add connection stats

pull/48/head
yuqing 2014-09-13 23:13:23 +08:00
parent 738a3208b9
commit 05a4947b4a
1 changed files with 15 additions and 0 deletions

View File

@ -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"), \