dedup

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

commit f5519d6da7cdbd5609fb552aee0ae078ac63ef8a
parent 99c3b317f9e0558d624235439a4162306f8e549d
Author: sin <sin@2f30.org>
Date:   Tue, 19 Feb 2019 12:58:40 +0000

Don't print any stats if the store is empty

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

diff --git a/dedup.c b/dedup.c @@ -224,6 +224,9 @@ print_md(uint8_t *md, size_t size) void print_stats(struct stats *st) { + if (st->nblks == 0) + return; + fprintf(stderr, "original size: %llu bytes\n", (unsigned long long)st->orig_size); fprintf(stderr, "compressed size: %llu bytes\n",