about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/PublicInbox/V2Writable.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/V2Writable.pm b/lib/PublicInbox/V2Writable.pm
index 3329d79f..76e61e86 100644
--- a/lib/PublicInbox/V2Writable.pm
+++ b/lib/PublicInbox/V2Writable.pm
@@ -44,7 +44,7 @@ sub nproc_parts ($) {
                 chomp($n = `nproc 2>/dev/null`);
                 # assume 2 cores if GNU nproc(1) is not available
                 $n = 2 if !$n;
-                $n = $NPROC_MAX_DEFAULT if $NPROC_MAX_DEFAULT > 4;
+                $n = $NPROC_MAX_DEFAULT if $n > $NPROC_MAX_DEFAULT;
         }
 
         # subtract for the main process and git-fast-import