nproc add
This commit is contained in:
parent
cc03a9f1f6
commit
79ccb4ca4d
|
@ -1,2 +1,3 @@
|
|||
#Example
|
||||
#[SRC] [DST] [FS TYPE] [OPTIONS]
|
||||
/dev/sda1 /boot ext4 rw
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
echo ./*.c $CFLAGS $OUTPUT | xargs $CC
|
|
@ -0,0 +1,11 @@
|
|||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int main(void) {
|
||||
long count = sysconf(_SC_NPROCESSORS_ONLN);
|
||||
if (count <= 0)
|
||||
count = 1;
|
||||
|
||||
printf("%ld\n", count);
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue