aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-02-08 02:02:09 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-02-08 02:02:09 +0530
commitc07efcacc0f25391529a539138832948eccc8bf1 (patch)
tree3beb28af2f0d760b52cafce000c33c67a758b471 /src
parentee49249b69be4fe093d22d6ce35f81647ed7bae7 (diff)
downloadnnn-c07efcacc0f25391529a539138832948eccc8bf1.tar.gz
More informative feedback on du
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/nnn.c b/src/nnn.c
index cf2b5d4..53e54ec 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -2558,6 +2558,8 @@ static int dentfill(char *path, struct entry **dents)
ent_blocks = 0;
mkpath(path, namep, g_buf);
+ mvprintw(LINES - 1, 0, "scanning %s\n", xbasename(g_buf));
+ refresh();
if (nftw(g_buf, nftw_fn, open_max,
FTW_MOUNT | FTW_PHYS) == -1) {
printmsg(messages[STR_NFTWFAIL_ID]);
@@ -2632,6 +2634,8 @@ static int dentfill(char *path, struct entry **dents)
num_saved = num_files + 1;
mkpath(path, namep, g_buf);
+ mvprintw(LINES - 1, 0, "scanning %s\n", xbasename(g_buf));
+ refresh();
if (nftw(g_buf, nftw_fn, open_max, FTW_MOUNT | FTW_PHYS) == -1) {
printmsg(messages[STR_NFTWFAIL_ID]);
dentp->blocks = (cfg.apparentsz ? sb.st_size : sb.st_blocks);
@@ -2695,11 +2699,6 @@ static int dentfind(const char *fname, int n)
static void populate(char *path, char *lastname)
{
- if (cfg.blkorder) {
- printmsg("calculating...");
- refresh();
- }
-
#ifdef DEBUGMODE
struct timespec ts1, ts2;