Move volume capacity, free up

This commit is contained in:
Arun Prakash Jana 2018-04-14 10:21:39 +05:30
parent 46dd9f2c4d
commit 8e4ebbed4c
No known key found for this signature in database
GPG key ID: A75979F35C080412

12
nnn.c
View file

@ -1996,7 +1996,8 @@ show_help(char *path)
start = ++end; start = ++end;
} }
dprintf(fd, "\n"); dprintf(fd, "\nVolume: %s of ", coolsize(get_fs_free(path)));
dprintf(fd, "%s free\n\n", coolsize(get_fs_capacity(path)));
if (getenv("NNN_BMS")) { if (getenv("NNN_BMS")) {
dprintf(fd, "BOOKMARKS\n"); dprintf(fd, "BOOKMARKS\n");
@ -2010,27 +2011,20 @@ show_help(char *path)
if (editor) if (editor)
dprintf(fd, "NNN_USE_EDITOR: %s\n", editor); dprintf(fd, "NNN_USE_EDITOR: %s\n", editor);
if (desktop_manager) if (desktop_manager)
dprintf(fd, "NNN_DE_FILE_MANAGER: %s\n", desktop_manager); dprintf(fd, "NNN_DE_FILE_MANAGER: %s\n", desktop_manager);
if (idletimeout) if (idletimeout)
dprintf(fd, "NNN_IDLE_TIMEOUT: %d secs\n", idletimeout); dprintf(fd, "NNN_IDLE_TIMEOUT: %d secs\n", idletimeout);
if (copier) if (copier)
dprintf(fd, "NNN_COPIER: %s\n", copier); dprintf(fd, "NNN_COPIER: %s\n", copier);
if (getenv("NNN_NO_X")) if (getenv("NNN_NO_X"))
dprintf(fd, "NNN_NO_X: %s\n", getenv("NNN_NO_X")); dprintf(fd, "NNN_NO_X: %s\n", getenv("NNN_NO_X"));
if (getenv("NNN_SCRIPT")) if (getenv("NNN_SCRIPT"))
dprintf(fd, "NNN_SCRIPT: %s\n", getenv("NNN_SCRIPT")); dprintf(fd, "NNN_SCRIPT: %s\n", getenv("NNN_SCRIPT"));
if (getenv("NNN_SHOW_HIDDEN")) if (getenv("NNN_SHOW_HIDDEN"))
dprintf(fd, "NNN_SHOW_HIDDEN: %s\n", getenv("NNN_SHOW_HIDDEN")); dprintf(fd, "NNN_SHOW_HIDDEN: %s\n", getenv("NNN_SHOW_HIDDEN"));
dprintf(fd, "\nVolume: %s of ", coolsize(get_fs_free(path))); dprintf(fd, "\n");
dprintf(fd, "%s free\n\n", coolsize(get_fs_capacity(path)));
if (getenv("PWD")) if (getenv("PWD"))
dprintf(fd, "PWD: %s\n", getenv("PWD")); dprintf(fd, "PWD: %s\n", getenv("PWD"));