* file.c (copy_file_file): In 'Reget' mode take into account

the partially retrieved data when drawing the progress bar.
From Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>
This commit is contained in:
Pavel Tsekov 2006-01-24 14:07:07 +00:00
parent ee404fbebe
commit 78535f6b60
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2006-01-24 Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>
* 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 <egmont@uhulinux.hu> 2006-01-23 Egmont Koblinger <egmont@uhulinux.hu>
* subshell.c: restart write() calls interrupted by sigchld which lead * subshell.c: restart write() calls interrupted by sigchld which lead

View File

@ -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); file_progress_set_stalled_label (ctx, stalled_msg);
return_status = file_progress_show_bytes (ctx, *progress_bytes + 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) { if (return_status == FILE_CONT) {
return_status = 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 (); mc_refresh ();
if (return_status != FILE_CONT) if (return_status != FILE_CONT)