mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-15 18:18:41 -09:00
Size graph uses the apparent size if that is displayed
git-svn-id: svn://blicky.net/ncdu/trunk@45 ce56bc8d-f834-0410-b703-f827bd498a76
This commit is contained in:
parent
6f2d258354
commit
c050d775d5
2 changed files with 5 additions and 4 deletions
|
|
@ -2,6 +2,7 @@ svn - ?
|
||||||
- Fixed incorrect apparent size on directory refresh
|
- Fixed incorrect apparent size on directory refresh
|
||||||
- Browsing keys now work while file info window is displayed
|
- Browsing keys now work while file info window is displayed
|
||||||
- Current directory is assumed when no directory is specified
|
- Current directory is assumed when no directory is specified
|
||||||
|
- Size graph uses the apparent size if that is displayed
|
||||||
|
|
||||||
1.4 - 2008-09-10
|
1.4 - 2008-09-10
|
||||||
- Removed the startup window
|
- Removed the startup window
|
||||||
|
|
|
||||||
|
|
@ -197,8 +197,8 @@ void drawBrowser(int change) {
|
||||||
exlhid(n)
|
exlhid(n)
|
||||||
if(n->flags & FF_BSEL)
|
if(n->flags & FF_BSEL)
|
||||||
selected = i;
|
selected = i;
|
||||||
if(n->size > max)
|
if((bflags & BF_AS ? n->asize : n->size) > max)
|
||||||
max = n->size;
|
max = bflags & BF_AS ? n->asize : n->size;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(selected+change < 0)
|
if(selected+change < 0)
|
||||||
|
|
@ -280,7 +280,7 @@ void drawBrowser(int change) {
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
mvprintw(i+2, 0, tmp, ct, size,
|
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)
|
dt, cropdir(n->name, wincols-24)
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
|
@ -292,7 +292,7 @@ void drawBrowser(int change) {
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
mvprintw(i+2, 0, tmp, ct, size,
|
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)
|
dt, cropdir(n->name, wincols-30)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue