consistently print ammount of threads used

This commit is contained in:
cathugger 2018-07-05 22:40:34 +00:00
parent 37a1506b18
commit eafa834b5e

6
main.c
View file

@ -668,10 +668,10 @@ int main(int argc,char **argv)
numthreads = cpucount();
if (numthreads <= 0)
numthreads = 1;
if (!quietflag)
fprintf(stderr,"using %d %s\n",
numthreads,numthreads == 1 ? "thread" : "threads");
}
if (!quietflag)
fprintf(stderr,"using %d %s\n",
numthreads,numthreads == 1 ? "thread" : "threads");
signal(SIGTERM,termhandler);
signal(SIGINT,termhandler);