Skip to content

Commit 6656708

Browse files
committed
[DYNACACHE] Added Compression % for dynacache-list
1 parent 153b661 commit 6656708

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tools/dynacache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ int ReadDynaCache(const char* folder, const char* name, mapping_t* mapping, int
872872
(void*)file_header->map_addr, (void*)file_header->map_addr+file_header->map_len,
873873
file_header->nLockAddresses, file_header->nUnalignedAddresses);
874874
if(total_compressed && n>0 && n<(int)sizeof(buf)) {
875-
n += snprintf(buf+n, sizeof(buf)-n, "\n\tCompression: %s compressed", NicePrintSize(total_compressed));
875+
n += snprintf(buf+n, sizeof(buf)-n, "\n\tCompression: %d%% / %s compressed", 100ULL-total_compressed*100ULL/total_blocks ,NicePrintSize(total_compressed));
876876
if(total_uncompressed && n>0 && n<(int)sizeof(buf))
877877
n += snprintf(buf+n, sizeof(buf)-n, ", %s uncompressed", NicePrintSize(total_uncompressed));
878878
}

0 commit comments

Comments
 (0)