Skip to content
Snippets Groups Projects
Commit 01f9a1f5 authored by yorhel's avatar yorhel
Browse files

Fixed incorrect apparent size on directory refresh

git-svn-id: svn://blicky.net/ncdu/trunk@41 ce56bc8d-f834-0410-b703-f827bd498a76
parent 04b70328
No related branches found
No related tags found
No related merge requests found
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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment