Also count deleted and renamed files to overall count

This commit is contained in:
Klaas Freitag 2013-10-14 11:15:44 +02:00
parent f3755bb708
commit 958d712199

View file

@ -1548,13 +1548,15 @@ static int _csync_propagation_file_count_visitor(void *obj, void *data) {
break;
case CSYNC_FTW_TYPE_FILE:
switch (st->instruction) {
case CSYNC_INSTRUCTION_NEW:
case CSYNC_INSTRUCTION_SYNC:
case CSYNC_INSTRUCTION_CONFLICT:
case CSYNC_INSTRUCTION_NEW:
case CSYNC_INSTRUCTION_SYNC:
case CSYNC_INSTRUCTION_CONFLICT:
case CSYNC_INSTRUCTION_REMOVE:
case CSYNC_INSTRUCTION_RENAME:
ctx->overall_progress.file_count++;
ctx->overall_progress.byte_sum += st->size;
break;
default:
default:
break;
}
break;