Fixed incorrect apparent size on directory refresh
git-svn-id: svn://blicky.net/ncdu/trunk@41 ce56bc8d-f834-0410-b703-f827bd498a76
Этот коммит содержится в:
родитель
04b7032846
Коммит
01f9a1f552
@ -1,4 +1,7 @@
|
||||
svn - ?
|
||||
- Fixed incorrect apparent size on directory refresh
|
||||
|
||||
1.4 - 2008-09-10
|
||||
- Removed the startup window
|
||||
- Filenames ending with a tidle (~) will now also
|
||||
be hidden with the 'h'-key
|
||||
|
@ -419,12 +419,14 @@ void showBrowser(void) {
|
||||
bcur->sub = n->sub;
|
||||
bcur->items = n->items;
|
||||
bcur->size = n->size;
|
||||
bcur->asize = n->asize;
|
||||
for(t = bcur->sub; t != NULL; t = t->next)
|
||||
t->parent = bcur;
|
||||
|
||||
/* update sizes of parent dirs */
|
||||
for(t = bcur; (t = t->parent) != NULL; ) {
|
||||
t->size += bcur->size;
|
||||
t->asize += bcur->asize;
|
||||
t->items += bcur->items;
|
||||
}
|
||||
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user