From 3eaf615f40d15743971b526b27111c6aa9407f87 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Tue, 27 Jan 2004 06:51:39 +0000 Subject: [PATCH] Percentage of file-count output was off by one. --- progress.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"); -- 2.34.1