fix counters for pilerimport

This commit is contained in:
SJ 2013-05-06 23:15:14 +02:00
parent aa56565c2e
commit 97a76b71fe

View File

@ -102,6 +102,7 @@ ENDE:
switch(rc) {
case OK:
bzero(&counters, sizeof(counters));
counters.c_rcvd = 1;
counters.c_size += sdata->tot_len;
update_counters(sdata, data, &counters, cfg);
@ -109,6 +110,11 @@ ENDE:
case ERR_EXISTS:
rc = OK;
bzero(&counters, sizeof(counters));
counters.c_duplicate = 1;
update_counters(sdata, data, &counters, cfg);
printf("duplicate: %s (id: %s)\n", filename, sdata->ttmpfile);
break;