tPrint dedup ratio - dedup - deduplicating backup program
(HTM) git clone git://git.z3bra.org/dedup.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 1f0640de77e4cf3d4227dd824d556f09e2bb4200
(DIR) parent 5dc90228e20bb34a7033f51261e146b9630b41aa
(HTM) Author: sin <sin@2f30.org>
Date: Sun, 24 Mar 2019 19:36:23 +0000
Print dedup ratio
Diffstat:
M dedup.c | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/dedup.c b/dedup.c
t@@ -60,6 +60,8 @@ print_stats(struct stats *st)
(unsigned long long)st->compr_size);
fprintf(stderr, "Deduplicated size: %llu bytes\n",
(unsigned long long)st->dedup_size);
+ fprintf(stderr, "Deduplication ratio: %.2f\n",
+ (double)st->orig_size / st->dedup_size);
fprintf(stderr, "Min/avg/max block size: %llu/%llu/%llu bytes\n",
(unsigned long long)st->min_blk_size,
(unsigned long long)st->dedup_size / st->nr_blks,