Keith Taylor submitted a patch to support older kernels ID: 2716990

git-svn-id: svn://svn.code.sf.net/p/muninlite/code/muninlite@29 35caa317-6b62-4e8a-81c0-b04f0c356266
This commit is contained in:
runesk 2011-01-14 20:52:13 +00:00
parent d31563a156
commit fc1c90b1a2

View file

@ -4,6 +4,7 @@ config_cpu() {
extinfo="iowait irq softirq"
fi
NCPU=$(($(grep '^cpu. ' /proc/stat | wc -l) - 1))
if [ $NCPU = 0 ]; then NCPU=1; fi
PERCENT=$(($NCPU * 100))
graphlimit=$PERCENT
SYSWARNING=$(($PERCENT * 30 / 100))