mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-13 01:08:41 -09:00
Fixed incorrect apparent size on directory refresh
git-svn-id: svn://blicky.net/ncdu/trunk@41 ce56bc8d-f834-0410-b703-f827bd498a76
This commit is contained in:
parent
04b7032846
commit
01f9a1f552
2 changed files with 5 additions and 0 deletions
|
|
@ -1,4 +1,7 @@
|
||||||
svn - ?
|
svn - ?
|
||||||
|
- Fixed incorrect apparent size on directory refresh
|
||||||
|
|
||||||
|
1.4 - 2008-09-10
|
||||||
- Removed the startup window
|
- Removed the startup window
|
||||||
- Filenames ending with a tidle (~) will now also
|
- Filenames ending with a tidle (~) will now also
|
||||||
be hidden with the 'h'-key
|
be hidden with the 'h'-key
|
||||||
|
|
|
||||||
|
|
@ -419,12 +419,14 @@ void showBrowser(void) {
|
||||||
bcur->sub = n->sub;
|
bcur->sub = n->sub;
|
||||||
bcur->items = n->items;
|
bcur->items = n->items;
|
||||||
bcur->size = n->size;
|
bcur->size = n->size;
|
||||||
|
bcur->asize = n->asize;
|
||||||
for(t = bcur->sub; t != NULL; t = t->next)
|
for(t = bcur->sub; t != NULL; t = t->next)
|
||||||
t->parent = bcur;
|
t->parent = bcur;
|
||||||
|
|
||||||
/* update sizes of parent dirs */
|
/* update sizes of parent dirs */
|
||||||
for(t = bcur; (t = t->parent) != NULL; ) {
|
for(t = bcur; (t = t->parent) != NULL; ) {
|
||||||
t->size += bcur->size;
|
t->size += bcur->size;
|
||||||
|
t->asize += bcur->asize;
|
||||||
t->items += bcur->items;
|
t->items += bcur->items;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue