bugfix: 远端测试bug
This commit is contained in:
@@ -320,8 +320,10 @@ int mp_print(mp_pool_t *pool){
|
||||
printf("------\n");
|
||||
for(int i = 0; i < MEMPOOL_NUM_CLASSES; i++){
|
||||
mp_bucket_t *bucket = &pool->buckets[i];
|
||||
if(bucket->page_count) ret += bucket->page_count;
|
||||
printf("size:%ld, page:%d, empty:%d\n", bucket->block_size, bucket->page_count, bucket->empty_count);
|
||||
if(bucket->page_count) {
|
||||
ret += bucket->page_count;
|
||||
printf("size:%ld, page:%d, empty:%d\n", bucket->block_size, bucket->page_count, bucket->empty_count);
|
||||
}
|
||||
}
|
||||
printf("------\n");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user