modify mblock stat ratio

pull/5/head
yuqing 2015-10-30 16:01:16 +08:00
parent d2db706f7a
commit cc070f18f4
1 changed files with 2 additions and 2 deletions

View File

@ -207,10 +207,10 @@ int fast_mblock_manager_stat_print()
stat_end = stats + count; stat_end = stats + count;
for (pStat=stats; pStat<stat_end; pStat++) for (pStat=stats; pStat<stat_end; pStat++)
{ {
logInfo("%32s %12d %16d %12d %12d %12.4f", pStat->name, logInfo("%32s %12d %16d %12d %12d %11.2f%%", pStat->name,
pStat->element_size, pStat->instance_count, pStat->element_size, pStat->instance_count,
pStat->total_count, pStat->used_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); (double)pStat->total_count : 0.00);
} }
} }