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