From: Arun Prakash Jana Date: Sun, 15 Sep 2019 12:55:11 +0000 (+0530) Subject: Show directory size X-Git-Tag: v2.7~77 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=e68e8ad8a5ecbb58b776c04574b55e3c60936f93;p=nnn.git Show directory size --- diff --git a/src/nnn.c b/src/nnn.c index 0fca4d78..9c2dc133 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -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); break; case S_IFDIR: - if (cfg.blkorder) - printw("%c%-16.16s %s %8.8s/ %s/\n", - cp, timebuf, permbuf, coolsize(ent->blocks << BLK_SHIFT), pname); - else - printw("%c%-16.16s %s / %s/\n", cp, timebuf, permbuf, pname); + printw("%c%-16.16s %s %8.8s %s/\n", cp, timebuf, permbuf, + coolsize(cfg.blkorder ? ent->blocks << BLK_SHIFT : ent->size), pname); break; case S_IFLNK: printw("%c%-16.16s %s @ %s@\n", cp, timebuf, permbuf, pname);