Skip to content

Commit b5d2658

Browse files
committed
excluded threads from proc calculation
1 parent 6628276 commit b5d2658

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-update-sys-rrd-la

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ fi
5555
if [ "$period" = 'daily' ]; then
5656
loadavg=$(cat /proc/loadavg )
5757
la=$(echo "$loadavg"|cut -f 2 -d ' ')
58-
pr=$(echo "$loadavg"|cut -f 4 -d ' '|cut -f 2 -d /)
58+
pr=$(ps auxh |wc -l)
5959

6060
# Updating rrd database
6161
rrdtool update $RRD/la/la.rrd N:${la//./}:$pr

0 commit comments

Comments
 (0)