From: Wayne Davison Date: Thu, 17 Apr 2003 23:44:25 +0000 (+0000) Subject: Only display the malloc stats if we're at least double-verbose (and X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/577ab12ce5bed9cadd25aab34ced12d55f82f66d Only display the malloc stats if we're at least double-verbose (and --stats was specified, of course). Also made the output of the short (2-line) transfer summary get prefixed with an empty line in all cases (not just with --stats). --- diff --git a/main.c b/main.c index c6bd2c29..e9670ef8 100644 --- a/main.c +++ b/main.c @@ -87,7 +87,8 @@ static void report(int f) if (do_stats) { /* These come out from every process */ - show_malloc_stats(); + if (verbose > 1) + show_malloc_stats(); show_flist_stats(); } @@ -142,12 +143,12 @@ static void report(int f) rprintf(FINFO,"File list size: %d\n", stats.flist_size); rprintf(FINFO,"Total bytes written: %.0f\n", (double)stats.total_written); - rprintf(FINFO,"Total bytes read: %.0f\n\n", + rprintf(FINFO,"Total bytes read: %.0f\n", (double)stats.total_read); } if (verbose || do_stats) { - rprintf(FINFO,"wrote %.0f bytes read %.0f bytes %.2f bytes/sec\n", + rprintf(FINFO,"\nwrote %.0f bytes read %.0f bytes %.2f bytes/sec\n", (double)stats.total_written, (double)stats.total_read, (stats.total_written+stats.total_read)/(0.5 + (t-starttime)));