patch from David Murn to make sure the final 100% is always printed
[rsync/rsync.git] / util.c
diff --git a/util.c b/util.c
index 078d59f..4382300 100644 (file)
--- a/util.c
+++ b/util.c
@@ -767,12 +767,12 @@ int u_strcmp(const char *cs1, const char *cs2)
 
 static OFF_T last_ofs;
 
-void end_progress(void)
+void end_progress(OFF_T size)
 {
        extern int do_progress, am_server;
 
        if (do_progress && !am_server) {
-               rprintf(FINFO,"\n");
+               rprintf(FINFO,"%.0f (100%%)\n", (double)size);
        }
        last_ofs = 0;
 }