diff options
author | Wayne Davison <wayned@samba.org> | 2005-07-30 16:13:19 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2005-07-30 16:13:19 +0000 |
commit | 1f86fcf5dc1eb6a7077b0f6b52cc855409ddf881 (patch) | |
tree | 761972a9e611c8ba71cf43ab47956c37c43fa64e /match.c | |
parent | bb9bdba4c9493eb2c10a544f90c33f83f13f6ef1 (diff) | |
download | rsync-1f86fcf5dc1eb6a7077b0f6b52cc855409ddf881.tar.gz |
The combination of --update and --progress now outputs progress
information during the checksum scan of the already-sent data.
Diffstat (limited to 'match.c')
-rw-r--r-- | match.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -334,12 +334,16 @@ void match_sums(int f, struct sum_struct *s, struct map_struct *buf, OFF_T len) if (append_mode) { OFF_T j = 0; 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), CHUNK_SIZE); last_match = j; } if (last_match < s->flength) { 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); last_match = s->flength; } |