X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=blobdiff_plain;f=lib%2FPublicInbox%2FLeiQuery.pm;h=352ee60131aaf6bc9baabfbd4ae735c4a0f06568;hp=3d0e5b144d3a9c939cc036e525283adc020c8a2c;hb=97a9139a75729c41bb91acd711e8b088e6379600;hpb=9cd6f106919076285c3dcc0d48977d6b39c33ede diff --git a/lib/PublicInbox/LeiQuery.pm b/lib/PublicInbox/LeiQuery.pm index 3d0e5b14..352ee601 100644 --- a/lib/PublicInbox/LeiQuery.pm +++ b/lib/PublicInbox/LeiQuery.pm @@ -37,7 +37,7 @@ sub _start_query { # used by "lei q" and "lei up" $lms->lms_write_prepare->lms_pause; # just create } } - $l2m and $l2m->{-wq_nr_workers} = $mj // + $l2m and $l2m->{-wq_nr_workers} //= $mj // int($nproc * 0.75 + 0.5); # keep some CPU for git # descending docid order is cheapest, MUA controls sorting order