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/ipvs/ipvs_conn
35 35

  
36 36

  
37 37
if [ "$1" = "autoconf" ]; then
38
        echo yes 
38
        echo yes
39 39
        exit 0
40 40
fi
41 41

  
......
67 67
function get_ip {
68 68
# Read the output
69 69
ipvsadm -l -n | nl | while read line; do
70
	# If match the ip, print the line number	
70
	# If match the ip, print the line number
71 71
	if ( echo $line | grep -e $IP > /dev/null ); then
72 72
		MAT=`echo $line | cut -d " " -f 1`
73 73
		echo $MAT
......
87 87

  
88 88
	# Parse lines
89 89
	while read line; do
90
	
90

  
91 91
		# Get line numbers
92 92
		N=`echo $line | cut -d " " -f 1`
93 93

  
......
97 97
			if ( echo $line | grep -e TCP -e UDP > /dev/null ); then
98 98
				break
99 99
			fi
100
		
100

  
101 101
			# Get ActiveConn number
102 102
			NUM1=`echo $line | awk '{print $6}'`
103 103
			# Sum it
......
106 106
			NUM2=`echo $line | awk '{print $7}'`
107 107
			# Sum it
108 108
			INACTCONCNT=$(( INACTCONCNT + NUM2))
109
		
109

  
110 110
			COUNT=`expr $COUNT + 1`
111 111
		fi
112 112
	done < $F1

Formats disponibles : Unified diff