X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/ea4e8cf8a19ef194eece2c4473b1b5017316f035..d26c7dfdb0a28a8ffc1bf5bffeb5555883c2f1e2:/main.c diff --git a/main.c b/main.c index 454b7ea6..2fc664c8 100644 --- a/main.c +++ b/main.c @@ -272,9 +272,10 @@ static void output_summary(void) "sent %s bytes received %s bytes %s bytes/sec\n", human_num(total_written), human_num(total_read), human_dnum((total_written + total_read)/(0.5 + (endtime - starttime)), 2)); - rprintf(FINFO, "total size is %s speedup is %.2f\n", + rprintf(FINFO, "total size is %s speedup is %.2f%s\n", human_num(stats.total_size), - (double)stats.total_size / (total_written+total_read)); + (double)stats.total_size / (total_written+total_read), + dry_run ? " (DRY RUN)" : ""); } fflush(stdout); @@ -723,7 +724,7 @@ static void do_server_sender(int f_in, int f_out, int argc, char *argv[]) argc--; argv++; - if (argc == 0 && (recurse || list_only)) { + if (argc == 0 && (recurse || xfer_dirs || list_only)) { argc = 1; argv--; argv[0] = ".";