Projet

Général

Profil

Révision 17f78427

ID17f784270ae966ee9a13e9f5104a5b8f925b639e
Parent ef851f0c
Enfant d4320aea, 5b2396a9

Ajouté par Lars Kruse il y a plus de 7 ans

Whitespace cleanup

  • remove trailing whitespace
  • remove empty lines at the end of files

Voir les différences:

plugins/cpu/process_cpushare
26 26

  
27 27

  
28 28

  
29
if [ "$1" = "autoconf" ] ; then 
29
if [ "$1" = "autoconf" ] ; then
30 30
    if [ -n "$procs" ] ; then
31 31
        echo "yes"
32 32
    else
......
49 49
    echo 'graph_scale no'
50 50
    echo 'graph_period second'
51 51
    echo "graph_order $cprocs"
52
    
53
    for proc in $procs; do  
52

  
53
    for proc in $procs; do
54 54
        cproc=${proc//[^A-Za-z0-9_]/_}
55 55
        echo "${cproc}.label $proc"
56 56
        echo "${cproc}.info CPU used by process $proc"
57 57
     done ;
58
    
58

  
59 59
    exit
60 60
fi
61 61

  
......
64 64
for proc in $procs ; do {
65 65
        cproc=${proc//[^A-Za-z0-9_]/_}
66 66
	ps axo 'pcpu,comm,command' | grep -v grep | grep "$proc" | LC_ALL=us_US awk '
67
	BEGIN { 
68
	SUM=0 
67
	BEGIN {
68
	SUM=0
69 69
	}
70
	{ 
71
	SUM+=$1 
70
	{
71
	SUM+=$1
72 72
	}
73
	END { 
74
	print "'${cproc}'.value "SUM 
73
	END {
74
	print "'${cproc}'.value "SUM
75 75
	}
76 76
	'
77 77
}

Formats disponibles : Unified diff