Show directory size

This commit is contained in:
Arun Prakash Jana 2019-09-15 18:25:11 +05:30
parent 6feaecafe2
commit e68e8ad8a5
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 2 additions and 5 deletions

View File

@ -2417,11 +2417,8 @@ static void printent_long(const struct entry *ent, int sel, uint namecols)
coolsize(cfg.blkorder ? ent->blocks << BLK_SHIFT : ent->size), pname); coolsize(cfg.blkorder ? ent->blocks << BLK_SHIFT : ent->size), pname);
break; break;
case S_IFDIR: case S_IFDIR:
if (cfg.blkorder) printw("%c%-16.16s %s %8.8s %s/\n", cp, timebuf, permbuf,
printw("%c%-16.16s %s %8.8s/ %s/\n", coolsize(cfg.blkorder ? ent->blocks << BLK_SHIFT : ent->size), pname);
cp, timebuf, permbuf, coolsize(ent->blocks << BLK_SHIFT), pname);
else
printw("%c%-16.16s %s / %s/\n", cp, timebuf, permbuf, pname);
break; break;
case S_IFLNK: case S_IFLNK:
printw("%c%-16.16s %s @ %s@\n", cp, timebuf, permbuf, pname); printw("%c%-16.16s %s @ %s@\n", cp, timebuf, permbuf, pname);