aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-04-04 10:07:44 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-04-04 10:34:18 +0530
commitcb1a1112a80d731c907ed996e950543f78e0f192 (patch)
treee604aef1d781afa7db3d484709368bb68904fce3
parent07c59cfd6234cd2b5d5b0c344995f95cb2903261 (diff)
downloadnnn-cb1a1112a80d731c907ed996e950543f78e0f192.tar.gz
Disable checksum calculation
Calculation can take very long. Most Unix-ish OSes have utilities to do this.
-rw-r--r--README.md2
-rw-r--r--nnn.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/README.md b/README.md
index 0b79ee5..59fa860 100644
--- a/README.md
+++ b/README.md
@@ -59,7 +59,7 @@ I chose to fork because:
- current item in reverse video
- number of items in current directory
- full name of currently selected file
- - Show details of the currently selected file (stat, file, md5, sha256)
+ - Show details of the currently selected file (stat, file)
- Directories first
- Sort numeric names in numeric order
- Case-insensitive alphabetic content listing instead of upper case first
diff --git a/nnn.c b/nnn.c
index cf43628..5256c5d 100644
--- a/nnn.c
+++ b/nnn.c
@@ -796,6 +796,8 @@ show_stats(char* fpath, char* fname, struct stat *sb)
}
printw(" %s", begin);
}
+#ifdef SUPPORT_CHKSUM
+ /* Calculating checksums can take VERY long */
/* Show md5 */
sprintf(buf, "openssl md5 \"%s\" 2>&1", fpath);
@@ -822,6 +824,7 @@ show_stats(char* fpath, char* fname, struct stat *sb)
printw(" sha256: %s", p);
}
+#endif
}
/* Show exit keys */