]> Sergey Matveev's repositories - nnn.git/commitdiff
Disable checksum calculation
authorArun Prakash Jana <engineerarun@gmail.com>
Tue, 4 Apr 2017 04:37:44 +0000 (10:07 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Tue, 4 Apr 2017 05:04:18 +0000 (10:34 +0530)
Calculation can take very long. Most Unix-ish OSes have utilities to do this.

README.md
nnn.c

index 0b79ee558026dcfda13d2ec3590d634435a93d97..59fa860bc0c61b14167228fbf863f68dfa19244e 100644 (file)
--- 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 cf43628184c52b012abf7523cfe3446b573a5edd..5256c5d3a4d3fd3bc304a71696d9b1ccdf8a73d4 100644 (file)
--- 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 */