mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-13 01:08:41 -09:00
Apparent size toggle now also affects directories
This commit is contained in:
parent
a5e08cf597
commit
6604410696
1 changed files with 1 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ static void stat_to_dir(struct stat *fs) {
|
||||||
|
|
||||||
if(!(buf_dir->flags & (FF_OTHFS|FF_EXL))) {
|
if(!(buf_dir->flags & (FF_OTHFS|FF_EXL))) {
|
||||||
buf_dir->size = fs->st_blocks * S_BLKSIZE;
|
buf_dir->size = fs->st_blocks * S_BLKSIZE;
|
||||||
buf_dir->asize = fs->st_size;
|
buf_dir->asize = S_ISDIR(fs->st_mode) ? 0 : fs->st_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
buf_ext->mode = fs->st_mode;
|
buf_ext->mode = fs->st_mode;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue