mirror of
https://github.com/munin-monitoring/muninlite.git
synced 2024-12-22 13:52:13 +01:00
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:
parent
d31563a156
commit
fc1c90b1a2
1 changed files with 1 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue