mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-04-22 23:09:10 +00:00
consistently print ammount of threads used
This commit is contained in:
parent
37a1506b18
commit
eafa834b5e
1 changed files with 3 additions and 3 deletions
2
main.c
2
main.c
|
@ -668,10 +668,10 @@ int main(int argc,char **argv)
|
||||||
numthreads = cpucount();
|
numthreads = cpucount();
|
||||||
if (numthreads <= 0)
|
if (numthreads <= 0)
|
||||||
numthreads = 1;
|
numthreads = 1;
|
||||||
|
}
|
||||||
if (!quietflag)
|
if (!quietflag)
|
||||||
fprintf(stderr,"using %d %s\n",
|
fprintf(stderr,"using %d %s\n",
|
||||||
numthreads,numthreads == 1 ? "thread" : "threads");
|
numthreads,numthreads == 1 ? "thread" : "threads");
|
||||||
}
|
|
||||||
|
|
||||||
signal(SIGTERM,termhandler);
|
signal(SIGTERM,termhandler);
|
||||||
signal(SIGINT,termhandler);
|
signal(SIGINT,termhandler);
|
||||||
|
|
Loading…
Add table
Reference in a new issue