1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-24 18:07:20 +00:00

Whitespace cleanup

* remove trailing whitespace
* remove empty lines at the end of files
This commit is contained in:
Lars Kruse 2018-08-02 02:03:42 +02:00
parent ef851f0c34
commit 17f784270a
604 changed files with 2927 additions and 2945 deletions

View file

@ -35,7 +35,7 @@ IPLIST=$ips
if [ "$1" = "autoconf" ]; then
echo yes
echo yes
exit 0
fi
@ -64,7 +64,7 @@ fi
function get_ip {
# Read the output
ipvsadm -l -n | nl | while read line; do
# If match the ip, print the line number
# If match the ip, print the line number
if ( echo $line | grep -e $IP > /dev/null ); then
MAT=`echo $line | cut -d " " -f 1`
echo $MAT
@ -84,7 +84,7 @@ for IP in $IPLIST; do
# Parse lines
while read line; do
# Get line numbers
N=`echo $line | cut -d " " -f 1`
@ -94,7 +94,7 @@ for IP in $IPLIST; do
if ( echo $line | grep -e TCP -e UDP > /dev/null ); then
break
fi
COUNT=`expr $COUNT + 1`
fi
done < $F1

View file

@ -35,7 +35,7 @@ IPLIST=$ips
if [ "$1" = "autoconf" ]; then
echo yes
echo yes
exit 0
fi

View file

@ -35,7 +35,7 @@ IPLIST=$ips
if [ "$1" = "autoconf" ]; then
echo yes
echo yes
exit 0
fi
@ -67,7 +67,7 @@ fi
function get_ip {
# Read the output
ipvsadm -l -n | nl | while read line; do
# If match the ip, print the line number
# If match the ip, print the line number
if ( echo $line | grep -e $IP > /dev/null ); then
MAT=`echo $line | cut -d " " -f 1`
echo $MAT
@ -87,7 +87,7 @@ for IP in $IPLIST; do
# Parse lines
while read line; do
# Get line numbers
N=`echo $line | cut -d " " -f 1`
@ -97,7 +97,7 @@ for IP in $IPLIST; do
if ( echo $line | grep -e TCP -e UDP > /dev/null ); then
break
fi
# Get ActiveConn number
NUM1=`echo $line | awk '{print $6}'`
# Sum it
@ -106,7 +106,7 @@ for IP in $IPLIST; do
NUM2=`echo $line | awk '{print $7}'`
# Sum it
INACTCONCNT=$(( INACTCONCNT + NUM2))
COUNT=`expr $COUNT + 1`
fi
done < $F1

View file

@ -35,7 +35,7 @@ IPLIST=$ips
if [ "$1" = "autoconf" ]; then
echo yes
echo yes
exit 0
fi