mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-24 19:10:13 +01:00
fix counters for pilerimport
This commit is contained in:
parent
aa56565c2e
commit
97a76b71fe
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user