From 01f9a1f552b5c112a7467375778c0d768c413c38 Mon Sep 17 00:00:00 2001 From: yorhel <yorhel@ce56bc8d-f834-0410-b703-f827bd498a76> Date: Wed, 17 Sep 2008 16:40:39 +0000 Subject: [PATCH] Fixed incorrect apparent size on directory refresh git-svn-id: svn://blicky.net/ncdu/trunk@41 ce56bc8d-f834-0410-b703-f827bd498a76 --- ChangeLog | 3 +++ src/browser.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 97b5901..8ead7f2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/src/browser.c b/src/browser.c index c6b4eee..1a03404 100644 --- a/src/browser.c +++ b/src/browser.c @@ -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; } -- GitLab