Browse Source

excluded threads from proc calculation

Serghey Rodin 13 years ago
parent
commit
b5d26583a6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bin/v-update-sys-rrd-la

+ 1 - 1
bin/v-update-sys-rrd-la

@@ -55,7 +55,7 @@ fi
 if [ "$period" = 'daily' ]; then
     loadavg=$(cat /proc/loadavg )
     la=$(echo "$loadavg"|cut -f 2 -d ' ')
-    pr=$(echo "$loadavg"|cut -f 4 -d ' '|cut -f 2 -d /)
+    pr=$(ps auxh |wc -l)
 
     # Updating rrd database
     rrdtool update $RRD/la/la.rrd N:${la//./}:$pr