Commit 1f86fcf5 authored by Wayne Davison's avatar Wayne Davison

The combination of --update and --progress now outputs progress

information during the checksum scan of the already-sent data.
parent bb9bdba4
...@@ -334,12 +334,16 @@ void match_sums(int f, struct sum_struct *s, struct map_struct *buf, OFF_T len) ...@@ -334,12 +334,16 @@ void match_sums(int f, struct sum_struct *s, struct map_struct *buf, OFF_T len)
if (append_mode) { if (append_mode) {
OFF_T j = 0; OFF_T j = 0;
for (j = CHUNK_SIZE; j < s->flength; j += CHUNK_SIZE) { for (j = CHUNK_SIZE; j < s->flength; j += CHUNK_SIZE) {
if (buf && do_progress)
show_progress(last_match, buf->file_size);
sum_update(map_ptr(buf, last_match, CHUNK_SIZE), sum_update(map_ptr(buf, last_match, CHUNK_SIZE),
CHUNK_SIZE); CHUNK_SIZE);
last_match = j; last_match = j;
} }
if (last_match < s->flength) { if (last_match < s->flength) {
int32 len = s->flength - last_match; int32 len = s->flength - last_match;
if (buf && do_progress)
show_progress(last_match, buf->file_size);
sum_update(map_ptr(buf, last_match, len), len); sum_update(map_ptr(buf, last_match, len), len);
last_match = s->flength; last_match = s->flength;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment