]> Sergey Matveev's repositories - public-inbox.git/blobdiff - script/public-inbox-index
index: avoid false-positive warning on off-by-one
[public-inbox.git] / script / public-inbox-index
index 2a7a524b34abee1765c3adc9288b64cf29dac78e..e487e3fe327f69080e29996bb934a3cd219f46f8 100755 (executable)
@@ -109,7 +109,7 @@ sub index_dir {
                                $v2w->{parallel} = 0;
                        } else {
                                my $n = $v2w->{partitions};
-                               if ($jobs != $n) {
+                               if ($jobs != ($n + 1)) {
                                        warn
 "Unable to respect --jobs=$jobs, inbox was created with $n partitions\n";
                                }