diff options
author | Vincent Legoll <vincent.legoll@gmail.com> | 2017-08-07 09:55:00 +0200 |
---|---|---|
committer | Vincent Legoll <vincent.legoll@gmail.com> | 2017-08-07 10:09:49 +0200 |
commit | ddd75409bd4743ea6988d9d2bbeb09dac1018330 (patch) | |
tree | 85b46e43bdbcabadb38a2666578651c10914c428 /netdata-installer.sh | |
parent | df957395370e656a9961a5b3cfa8d4db80801282 (diff) |
Simplify processor cores counting
This was already done from the functions.sh import, so remove it
in makeself/run-all-jobs.sh
Diffstat (limited to 'netdata-installer.sh')
-rwxr-xr-x | netdata-installer.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/netdata-installer.sh b/netdata-installer.sh index c986e5a898..7dacd9343c 100755 --- a/netdata-installer.sh +++ b/netdata-installer.sh @@ -49,7 +49,7 @@ umask 002 # Be nice on production environments renice 19 $$ >/dev/null 2>/dev/null -processors=$(cat /proc/cpuinfo 2>/dev/null | grep ^processor | wc -l) +processors=$(grep -c ^processor /proc/cpuinfo) [ $(( processors )) -lt 1 ] && processors=1 # you can set CFLAGS before running installer |