1
1

Fixed minor size + item count inconsistency on recalculating a dir

Namely, the 'parent' dir item itself that is recalculated isn't
reconsidered in its parents.
Этот коммит содержится в:
Yorhel 2009-04-16 19:05:11 +02:00
родитель d297af2ce8
Коммит 6d5ae5eb76

Просмотреть файл

@ -399,6 +399,15 @@ void calc_process() {
stcalc.parent = t; stcalc.parent = t;
stcalc.curdev = fs.st_dev; stcalc.curdev = fs.st_dev;
/* update parents, if any */
if(stcalc.orig) {
for(t=t->parent; t!=NULL; t=t->parent) {
t->size += stcalc.parent->size;
t->asize += stcalc.parent->asize;
t->items++;
}
}
/* start calculating */ /* start calculating */
if(!calc_dir(stcalc.parent, tmp) && !stcalc.err) { if(!calc_dir(stcalc.parent, tmp) && !stcalc.err) {
pstate = ST_BROWSE; pstate = ST_BROWSE;