1
1

Size graph uses the apparent size if that is displayed

git-svn-id: svn://blicky.net/ncdu/trunk@45 ce56bc8d-f834-0410-b703-f827bd498a76
Этот коммит содержится в:
yorhel 2008-12-11 17:07:55 +00:00
родитель 6f2d258354
Коммит c050d775d5
2 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -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)
);
}