mirror of
https://github.com/isar/libmdbx.git
synced 2024-10-30 11:29:19 +08:00
mdbx-tools: using walked pages count while output statistics if traversal enabled.
This commit is contained in:
parent
a9cb6a6a90
commit
ee22ffb878
@ -1567,7 +1567,7 @@ int main(int argc, char *argv[]) {
|
||||
value = envinfo.mi_mapsize / envstat.ms_psize - alloc_pages;
|
||||
print(", remained %" PRIu64 " (%.1f%%)", value, value / percent);
|
||||
|
||||
value = alloc_pages - gc_pages;
|
||||
value = dont_traversal ? alloc_pages - gc_pages : walk.pgcount;
|
||||
print(", used %" PRIu64 " (%.1f%%)", value, value / percent);
|
||||
|
||||
print(", gc %" PRIu64 " (%.1f%%)", gc_pages, gc_pages / percent);
|
||||
|
Loading…
Reference in New Issue
Block a user