X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/fb6e0ea120672aad1ecd2aebb8535d95be49ff8c..65fc84b32e2a558cca3a66587ac4cd06e16f1471:/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");