I like rsync -v but hell it is noisy with openrsync.
Just shut up about all the files that have not changed unless you go -vv.

-- 
:wq Claudio

Index: downloader.c
===================================================================
RCS file: /cvs/src/usr.bin/rsync/downloader.c,v
retrieving revision 1.21
diff -u -p -r1.21 downloader.c
--- downloader.c        8 May 2019 21:30:11 -0000       1.21
+++ downloader.c        5 May 2021 17:56:20 -0000
@@ -85,7 +85,7 @@ log_file(struct sess *sess,
        if (sess->opts->server)
                return;
 
-       frac = (dl->total == 0) ? 100.0 :
+       frac = (dl->total == 0) ? 0.0 :
                100.0 * dl->downloaded / dl->total;
 
        if (dl->total > 1024 * 1024 * 1024) {
@@ -102,8 +102,12 @@ log_file(struct sess *sess,
                unit = "KB";
        }
 
-       LOG1("%s (%.*f %s, %.1f%% downloaded)",
-           f->path, prec, tot, unit, frac);
+       if (dl->downloaded > 0)
+               LOG1("%s (%.*f %s, %.1f%% downloaded)",
+                   f->path, prec, tot, unit, frac);
+       else
+               LOG2("%s (%.*f %s, %.1f%% downloaded)",
+                   f->path, prec, tot, unit, frac);
 }
 
 /*

Reply via email to