From 201daee3b6df745b5c6d6ce6487a1a0117e6a816 Mon Sep 17 00:00:00 2001 From: YuQing <384681@qq.com> Date: Mon, 30 Mar 2020 23:20:34 +0800 Subject: [PATCH] mblock_manager_stat_print format --- HISTORY | 2 +- src/fast_mblock.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/HISTORY b/HISTORY index 92ae481..fbc3bc8 100644 --- a/HISTORY +++ b/HISTORY @@ -1,5 +1,5 @@ -Version 1.44 2020-03-29 +Version 1.44 2020-03-30 * add test file src/tests/test_pthread_lock.c * add uniq_skiplist.[hc] * add function split_string_ex diff --git a/src/fast_mblock.c b/src/fast_mblock.c index a317538..ae3e583 100644 --- a/src/fast_mblock.c +++ b/src/fast_mblock.c @@ -255,7 +255,7 @@ int fast_mblock_manager_stat_print_ex(const bool hide_empty, const int order_by) alloc_mem = 0; used_mem = 0; delay_free_mem = 0; - logInfo("%20s %8s %8s %12s %10s %10s %10s %10s %10s %12s", + logInfo("%20s %8s %8s %12s %11s %10s %10s %10s %10s %12s", "name", "el_size", "instance", "alloc_bytes", "trunc_alloc", "trunk_used", "el_alloc", "el_used", "delay_free", "used_ratio"); @@ -280,7 +280,7 @@ int fast_mblock_manager_stat_print_ex(const bool hide_empty, const int order_by) } } - logInfo("%20s %8d %8d %12"PRId64" %10"PRId64" %10"PRId64 + logInfo("%20s %8d %8d %12"PRId64" %11"PRId64" %10"PRId64 " %10"PRId64" %10"PRId64" %10"PRId64" %11.2f%%", pStat->name, pStat->element_size, pStat->instance_count, amem, pStat->trunk_total_count, pStat->trunk_used_count,