dedup

deduplicating backup program
git clone git://git.2f30.org/dedup
Log | Files | Refs | README | LICENSE

commit 1f0640de77e4cf3d4227dd824d556f09e2bb4200
parent 5dc90228e20bb34a7033f51261e146b9630b41aa
Author: sin <sin@2f30.org>
Date:   Sun, 24 Mar 2019 19:36:23 +0000

Print dedup ratio

Diffstat:
Mdedup.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/dedup.c b/dedup.c @@ -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,