diff --git a/inc/status.inc b/inc/status.inc index e5b3e7eb..07eeb338 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -94,7 +94,7 @@ STATUS(){ ######################## ## LOCALHOST CHECK ######################## - if [ ! -z ${LOCAL_SERVICES+x} ] && [ "${STATUS_ACTION}" != "dockers" ] && [ "${STATUS_ACTION}" != "services" ] && [ "${ntss}" == "" ]; then + if [ ! -z ${LOCAL_SERVICES+x} ] && [ "${STATUS_ACTION}" != "dockers" ] && [ "${ntss}" == "" ]; then cpu_usage=$(awk '{u=$2+$4; t=$2+$4+$5; if (NR==1){u1=u; t1=t;} else print ($2+$4-u1) * 100 / (t-t1) "%"; }' <(grep 'cpu ' /proc/stat) <(sleep 1;grep 'cpu ' /proc/stat) | sed -e 's/%//g') if [ "${STATUS_ACTION}" != "check" ]; then