1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-25 02:18:08 +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

@ -30,7 +30,7 @@ function get_vmlist () {
vmlist_linenumber="$(echo "$summary" | $GREP -n "^Vmid")"
vmlist_linenumber="${vmlist_linenumber/:*/}"
vmlist="$(echo "$summary" | $TAIL -n $(($total_linenumber - $vmlist_linenumber)) | tr -s " ")"
}
@ -74,7 +74,7 @@ function VMoverallCpuUsage () {
temp="${c/*overallCpuUsage = /}"
vmcpu[$n]="${temp/,*/}"
if [ "${vmcpu[$n]}" == "<unset>" ]; then
vmcpu[$n]="0"
vmcpu[$n]="0"
fi
(( n++ ))
done <<EOF
@ -89,7 +89,7 @@ function VMoverallGuestMemUsage () {
temp="${m/*guestMemoryUsage = /}"
vmmem[$n]="${temp/,*/}"
if [ "${vmmem[$n]}" == "<unset>" ]; then
vmmem[$n]="0"
vmmem[$n]="0"
fi
(( n++ ))
done <<EOF
@ -104,7 +104,7 @@ function VMoverallHostMemUsage () {
temp="${m/*hostMemoryUsage = /}"
vmmem[$n]="${temp/,*/}"
if [ "${vmmem[$n]}" == "<unset>" ]; then
vmmem[$n]="0"
vmmem[$n]="0"
fi
(( n++ ))
done <<EOF