]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(MAX_N_DESCRIPTORS): Use 3 * UTILS_OPEN_MAX / 4.
authorJim Meyering <jim@meyering.net>
Tue, 4 Mar 2003 23:02:08 +0000 (23:02 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 4 Mar 2003 23:02:08 +0000 (23:02 +0000)
src/du.c

index afc3e0eae650a3dd82f0cafc45f2e0260fecd1d8..00120c6115f04af2e23142f75a8108902a5cd8d0 100644 (file)
--- a/src/du.c
+++ b/src/du.c
 
 /* The maximum number of simultaneously open file handles that
    may be used by ftw.  */
-#define MAX_N_DESCRIPTORS      \
-  (UTILS_OPEN_MAX < 20         \
-   ? UTILS_OPEN_MAX            \
-   : UTILS_OPEN_MAX - 10)
+#define MAX_N_DESCRIPTORS (3 * UTILS_OPEN_MAX / 4)
 
 /* Hash structure for inode and device numbers.  The separate entry
    structure makes it easier to rehash "in place".  */