summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryorhel <yorhel@ce56bc8d-f834-0410-b703-f827bd498a76>2007-11-02 19:22:20 +0000
committeryorhel <yorhel@ce56bc8d-f834-0410-b703-f827bd498a76>2007-11-02 19:22:20 +0000
commit6b05cc9f723b0ae6cb14590a068c0a4418ac83ad (patch)
tree3f6fc57b48bef8b3ed9d671f7c46a397611ec423
parentabeb59fe302b2277c7e001af245abada05778991 (diff)
Bugfix: total disk usage and apparent size in the status bar were always equal
git-svn-id: svn://blicky.net/ncdu/trunk@30 ce56bc8d-f834-0410-b703-f827bd498a76
-rw-r--r--src/browser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/browser.c b/src/browser.c
index 7bac33b..a67960a 100644
--- a/src/browser.c
+++ b/src/browser.c
@@ -165,8 +165,9 @@ void drawBrowser(int change) {
mvhline(winrows-1, 0, ' ', wincols);
mvprintw(0,0,"%s %s ~ Use the arrow keys to navigate, press ? for help", PACKAGE_NAME, PACKAGE_VERSION);
+ strcpy(tmp, cropsize(bcur->parent->size));
mvprintw(winrows-1, 0, " Total disk usage: %s Apparent size: %s Items: %d",
- cropsize(bcur->parent->size), cropsize(bcur->parent->asize), bcur->parent->items);
+ tmp, cropsize(bcur->parent->asize), bcur->parent->items);
attroff(A_REVERSE);
mvhline(1, 0, '-', wincols);