about summary refs log tree commit homepage
path: root/lib/PublicInbox/Admin.pm
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-08-12 09:17:17 +0000
committerEric Wong <e@yhbt.net>2020-08-13 02:22:58 +0000
commitfc689933e6e181f0bed62ff21fe83ab94bdc1969 (patch)
tree1995c5f964aa83b17f8266793b135ce36b227cd7 /lib/PublicInbox/Admin.pm
parenteace79f62e5cab2ecaf05d4e8773ab99f7662f48 (diff)
downloadpublic-inbox-fc689933e6e181f0bed62ff21fe83ab94bdc1969.tar.gz
Established tools like make(1), prove(1) and xargs(1) don't warn
when the desired parallelism level can't be met, either.
Diffstat (limited to 'lib/PublicInbox/Admin.pm')
-rw-r--r--lib/PublicInbox/Admin.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/Admin.pm b/lib/PublicInbox/Admin.pm
index ce720beb..d99a00b4 100644
--- a/lib/PublicInbox/Admin.pm
+++ b/lib/PublicInbox/Admin.pm
@@ -219,9 +219,9 @@ sub index_inbox {
                                 $v2w->{parallel} = 0;
                         } else {
                                 my $n = $v2w->{shards};
-                                if ($jobs != ($n + 1) && !$opt->{reshard}) {
+                                if ($jobs < ($n + 1) && !$opt->{reshard}) {
                                         warn
-"Unable to respect --jobs=$jobs, inbox was created with $n shards\n";
+"Unable to respect --jobs=$jobs on index, inbox was created with $n shards\n";
                                 }
                         }
                 }