diff --git a/src/ChangeLog b/src/ChangeLog index 7dedfd46c..daf3afa5d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2006-01-24 Jindrich Makovicka + + * file.c (copy_file_file): In 'Reget' mode take into account + the partially retrieved data when drawing the progress bar. + 2006-01-23 Egmont Koblinger * subshell.c: restart write() calls interrupted by sigchld which lead diff --git a/src/file.c b/src/file.c index 96193144b..244c60cd0 100644 --- a/src/file.c +++ b/src/file.c @@ -737,10 +737,10 @@ copy_file_file (FileOpContext *ctx, const char *src_path, const char *dst_path, file_progress_set_stalled_label (ctx, stalled_msg); return_status = file_progress_show_bytes (ctx, *progress_bytes + - n_read_total, ctx->progress_bytes); + n_read_total + ctx->do_reget, ctx->progress_bytes); if (return_status == FILE_CONT) { return_status = - file_progress_show (ctx, n_read_total, file_size); + file_progress_show (ctx, n_read_total + ctx->do_reget, file_size); } mc_refresh (); if (return_status != FILE_CONT)