diff options
author | 2019-11-01 15:28:13 +0530 | |
---|---|---|
committer | 2019-11-01 15:28:13 +0530 | |
commit | ef8db1fd45bd57b1f4a807d50cdf6ceb81158bdd (patch) | |
tree | 5a6c7ab9b7672d523770fd2f527bb483e3565113 /src | |
parent | 7416bb8503e7e0fae0ed111bf855545c26649b94 (diff) | |
download | nnn-ef8db1fd45bd57b1f4a807d50cdf6ceb81158bdd.tar.gz |
Show size of file in bytes in status bar in du mode
Diffstat (limited to 'src')
-rw-r--r-- | src/nnn.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -182,6 +182,7 @@ /* TYPE DEFINITIONS */ typedef unsigned long ulong; +typedef unsigned long long ull; typedef unsigned int uint; typedef unsigned char uchar; typedef unsigned short ushort; @@ -3928,9 +3929,10 @@ static void redraw(char *path) xstrlcpy(buf, coolsize(dir_blocks << blk_shift), 12); c = cfg.apparentsz ? 'a' : 'd'; - mvprintw(lastln, 0, "%d/%d (%d) %cu:%s free:%s files:%lu %s", + mvprintw(lastln, 0, "%d/%d (%d) %cu:%s free:%s files:%lu %lluB %s", cur + 1, ndents, nselected, c, buf, - coolsize(get_fs_info(path, FREE)), num_files, ptr); + coolsize(get_fs_info(path, FREE)), num_files, + (ull)(pent->blocks << blk_shift), ptr); } else { /* light or detail mode */ /* Show filename as it may be truncated in directory listing */ /* Get the unescaped file name */ |