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

Size graph uses the apparent size if that is displayed

git-svn-id: svn://blicky.net/ncdu/trunk@45 ce56bc8d-f834-0410-b703-f827bd498a76
parent 6f2d2583
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@ svn - ?
- Fixed incorrect apparent size on directory refresh
- Browsing keys now work while file info window is displayed
- Current directory is assumed when no directory is specified
- Size graph uses the apparent size if that is displayed
1.4 - 2008-09-10
- Removed the startup window
......
......@@ -197,8 +197,8 @@ void drawBrowser(int change) {
exlhid(n)
if(n->flags & FF_BSEL)
selected = i;
if(n->size > max)
max = n->size;
if((bflags & BF_AS ? n->asize : n->size) > max)
max = bflags & BF_AS ? n->asize : n->size;
}
if(selected+change < 0)
......@@ -280,7 +280,7 @@ void drawBrowser(int change) {
break;
case 1:
mvprintw(i+2, 0, tmp, ct, size,
graph(max, n->size),
graph(max, bflags & BF_AS ? n->asize : n->size),
dt, cropdir(n->name, wincols-24)
);
break;
......@@ -292,7 +292,7 @@ void drawBrowser(int change) {
break;
case 3:
mvprintw(i+2, 0, tmp, ct, size,
((float) n->size / (float) n->parent->size) * 100.0f, graph(max, n->size),
((float) n->size / (float) n->parent->size) * 100.0f, graph(max, bflags & BF_AS ? n->asize : n->size),
dt, cropdir(n->name, wincols-30)
);
}
......
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