From cc070f18f4d510071a5f4bdcdb4c3dcf6d67bfe2 Mon Sep 17 00:00:00 2001 From: yuqing Date: Fri, 30 Oct 2015 16:01:16 +0800 Subject: [PATCH] modify mblock stat ratio --- src/fast_mblock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fast_mblock.c b/src/fast_mblock.c index 169c5e4..148a343 100644 --- a/src/fast_mblock.c +++ b/src/fast_mblock.c @@ -207,10 +207,10 @@ int fast_mblock_manager_stat_print() stat_end = stats + count; for (pStat=stats; pStatname, + logInfo("%32s %12d %16d %12d %12d %11.2f%%", pStat->name, pStat->element_size, pStat->instance_count, pStat->total_count, pStat->used_count, - pStat->total_count > 0 ? (double)pStat->used_count / + pStat->total_count > 0 ? 100.00 * (double)pStat->used_count / (double)pStat->total_count : 0.00); } }