X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/6156e72f859428eb68b648af723f0bb982f07491..3eaf615f40d15743971b526b27111c6aa9407f87:/progress.c diff --git a/progress.c b/progress.c index 42d8f357..969b98b8 100644 --- a/progress.c +++ b/progress.c @@ -77,7 +77,8 @@ static void rprint_progress(OFF_T ofs, OFF_T size, struct timeval *now, if (is_last) { snprintf(eol, sizeof eol, " (%d, %.1f%% of %d)\n", stats.num_transferred_files, - (float)(stats.current_file_index * 100) / stats.num_files, + (float)((stats.current_file_index+1) * 100) + / stats.num_files, stats.num_files); } else strcpy(eol, "\r");