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.
Этот коммит содержится в:
родитель
d297af2ce8
Коммит
6d5ae5eb76
@ -399,6 +399,15 @@ void calc_process() {
|
||||
stcalc.parent = t;
|
||||
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 */
|
||||
if(!calc_dir(stcalc.parent, tmp) && !stcalc.err) {
|
||||
pstate = ST_BROWSE;
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user