diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2018-01-13 03:13:36 +0200 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2018-01-13 03:13:36 +0200 |
commit | 2d7bd09fb6f064978aa01415701f7c5ed35ca5d3 (patch) | |
tree | 683df98b6266fd550924964de7d9c321b561db62 /netdata-installer.sh | |
parent | 5aabeec377b0c16d59a00a805a18c5897f6ecc5c (diff) |
detect the number of processors on freebsd
Diffstat (limited to 'netdata-installer.sh')
-rwxr-xr-x | netdata-installer.sh | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/netdata-installer.sh b/netdata-installer.sh index 1fd2cf190c..173513ec8d 100755 --- a/netdata-installer.sh +++ b/netdata-installer.sh @@ -63,9 +63,6 @@ umask 002 # Be nice on production environments renice 19 $$ >/dev/null 2>/dev/null -processors=$(grep -c ^processor /proc/cpuinfo) -[ $(( processors )) -lt 1 ] && processors=1 - # you can set CFLAGS before running installer CFLAGS="${CFLAGS--O2}" [ "z${CFLAGS}" = "z-O3" ] && CFLAGS="-O2" @@ -495,7 +492,7 @@ progress "Cleanup compilation directory" # ----------------------------------------------------------------------------- progress "Compile netdata" -run make -j${processors} || exit 1 +run make -j${SYSTEM_CPUS} || exit 1 # ----------------------------------------------------------------------------- |