]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Admin.pm
admin: don't warn when --jobs exceeds shards
[public-inbox.git] / lib / PublicInbox / Admin.pm
index ce720beb6b2febd1439da2e40110fb06401db00b..d99a00b4b471d5983d38c7bd3150ebf0d03928b0 100644 (file)
@@ -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";
                                }
                        }
                }