summaryrefslogtreecommitdiffstats
path: root/netdata-installer.sh
diff options
context:
space:
mode:
authorVincent Legoll <vincent.legoll@gmail.com>2017-08-07 09:55:00 +0200
committerVincent Legoll <vincent.legoll@gmail.com>2017-08-07 10:09:49 +0200
commitddd75409bd4743ea6988d9d2bbeb09dac1018330 (patch)
tree85b46e43bdbcabadb38a2666578651c10914c428 /netdata-installer.sh
parentdf957395370e656a9961a5b3cfa8d4db80801282 (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-xnetdata-installer.sh2
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