tOnly compr/hash details some things in verbose mode - 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 1d030e78b7b8bcdbf805fc9080733e35e514b3af
(DIR) parent 6499f2d353ff8cc5cffeb336cee6c8dbf20679c2
(HTM) Author: sin <sin@2f30.org>
Date: Thu, 18 Apr 2019 11:38:26 +0100
Only compr/hash details some things in verbose mode
Diffstat:
M dinfo.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
(DIR) diff --git a/dinfo.c b/dinfo.c
t@@ -29,15 +29,16 @@ print_info(int tflag)
{
struct stats *st = &snap_hdr.st;
- if (!tflag) {
+ if (verbose > 0)
fprintf(stderr, "Compression algorithm: %s\n",
compr_type2name(compr_algo));
fprintf(stderr, "Hash algorithm: %s\n",
hash_type2name(hash_algo));
- if (st->nr_blks == 0)
- return;
+ if (st->nr_blks == 0)
+ return;
+ if (!tflag) {
fprintf(stderr, "Original size: %llu bytes\n",
(unsigned long long)st->orig_size);
fprintf(stderr, "Compressed size: %llu bytes\n",