mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
More informative feedback on du
This commit is contained in:
parent
ee49249b69
commit
c07efcacc0
|
@ -2558,6 +2558,8 @@ static int dentfill(char *path, struct entry **dents)
|
||||||
ent_blocks = 0;
|
ent_blocks = 0;
|
||||||
mkpath(path, namep, g_buf);
|
mkpath(path, namep, g_buf);
|
||||||
|
|
||||||
|
mvprintw(LINES - 1, 0, "scanning %s\n", xbasename(g_buf));
|
||||||
|
refresh();
|
||||||
if (nftw(g_buf, nftw_fn, open_max,
|
if (nftw(g_buf, nftw_fn, open_max,
|
||||||
FTW_MOUNT | FTW_PHYS) == -1) {
|
FTW_MOUNT | FTW_PHYS) == -1) {
|
||||||
printmsg(messages[STR_NFTWFAIL_ID]);
|
printmsg(messages[STR_NFTWFAIL_ID]);
|
||||||
|
@ -2632,6 +2634,8 @@ static int dentfill(char *path, struct entry **dents)
|
||||||
num_saved = num_files + 1;
|
num_saved = num_files + 1;
|
||||||
mkpath(path, namep, g_buf);
|
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) {
|
if (nftw(g_buf, nftw_fn, open_max, FTW_MOUNT | FTW_PHYS) == -1) {
|
||||||
printmsg(messages[STR_NFTWFAIL_ID]);
|
printmsg(messages[STR_NFTWFAIL_ID]);
|
||||||
dentp->blocks = (cfg.apparentsz ? sb.st_size : sb.st_blocks);
|
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)
|
static void populate(char *path, char *lastname)
|
||||||
{
|
{
|
||||||
if (cfg.blkorder) {
|
|
||||||
printmsg("calculating...");
|
|
||||||
refresh();
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef DEBUGMODE
|
#ifdef DEBUGMODE
|
||||||
struct timespec ts1, ts2;
|
struct timespec ts1, ts2;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue