diff --git a/plugins/system/cpubyuser b/plugins/system/cpubyuser index d5a42a11..5c1020a7 100755 --- a/plugins/system/cpubyuser +++ b/plugins/system/cpubyuser @@ -58,18 +58,12 @@ if [ "$1" = "config" ]; then echo "graph_period second" _USERS="$(for user in $USERS; do clean_fieldname "$user" | tr '\n' ' '; done)" echo "graph_order $_USERS others" - FIRSTUSER=1; for USER in $USERS "others"; do _USER="$(clean_fieldname "$USER")" echo "${_USER}.label $USER" echo "${_USER}.info CPU used by user $USER" echo "${_USER}.type GAUGE" - if [ $FIRSTUSER -eq 1 ]; then - echo "${_USER}.draw AREA" - FIRSTUSER=0 - else - echo "${_USER}.draw STACK" - fi + echo "${_USER}.draw AREASTACK" done exit fi