mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 18:49:17 -07:00
excluded threads from proc calculation
This commit is contained in:
parent
6628276862
commit
b5d26583a6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue