Projet

Général

Profil

Révision 94c0585a

ID94c0585a593aa357058ab192563470010d174091
Parent b7e0cab7
Enfant 1b2db4de

Ajouté par Kenyon Ralph il y a presque 13 ans

whitespace cleanup

Voir les différences:

plugins/system/zones_mem
10 10

  
11 11
if [ "$1" = 'autoconf' ]; then
12 12
        if [ -f $PRSTAT ]; then
13
		zones=`/usr/sbin/zoneadm list | wc -l`
14
		if [ $zones -gt 1 ]; then
15
			echo yes
16
		else
17
			echo yes
18
		fi
13
                zones=`/usr/sbin/zoneadm list | wc -l`
14
                if [ $zones -gt 1 ]; then
15
                        echo yes
16
                else
17
                        echo yes
18
                fi
19 19
                exit 0
20 20
        else
21 21
                echo no
......
26 26
if [ "$1" = 'config' ]; then
27 27
        echo 'graph_title zone memory usage'
28 28
        echo 'graph_args --upper-limit 100'
29
	echo 'graph_category system'
30
	stack=AREA
29
        echo 'graph_category system'
30
        stack=AREA
31 31
        $PRSTAT $PRSTAT_OPTS | sed '1,/^ZONEID/d' | grep -v '^Total' | while read i; do
32
		oIFS="$IFS"
33
		IFS=' 
32
                oIFS="$IFS"
33
                IFS='
34 34
'
35
		set -$- $i
36
		name=$1
37
		label=$8
35
                set -$- $i
36
                name=$1
37
                label=$8
38 38
                printf "$name.label $label\n$name.draw $stack\n$name.warn 95\n"
39
		IFS="$oIFS"
40
		stack=STACK
39
                IFS="$oIFS"
40
                stack=STACK
41 41
        done
42 42
        exit 0
43 43
fi
......
50 50
# Total: 207 processes, 709 lwps, load averages: 0.05, 0.06, 0.11$
51 51

  
52 52
$PRSTAT $PRSTAT_OPTS | sed '1,/^ZONEID/d' | grep -v '^Total' | while read i; do
53
	oIFS="$IFS"
54
	IFS='% 
53
        oIFS="$IFS"
54
        IFS='%
55 55
'
56
	set -$- $i
57
	name=$1
58
	value=$5
59
	printf "$name.value $value\n"
60
	IFS="$oIFS"
56
        set -$- $i
57
        name=$1
58
        value=$5
59
        printf "$name.value $value\n"
60
        IFS="$oIFS"
61 61
done

Formats disponibles : Unified diff