1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-08-01 05:43:44 +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

@ -25,7 +25,7 @@
For FreeBSD, it should be necessary to change shebang /bin/bash -> /usr/local/bin/bash
=head1 ENVIRONMENT VARIABLES
None
=head1 AUTHOR
@ -66,7 +66,7 @@ get_osname() {
SunOS)
case $osver in
illumos*)
osname=illumos
osname=illumos
;;
esac
;;
@ -84,7 +84,7 @@ preconfig() {
case $func in
size)
global_attr="
graph_title ZFS ARC - Size
graph_title ZFS ARC - Size
graph_category fs
graph_args --base 1024 --lower-limit 0
graph_vlabel Bytes
@ -150,7 +150,7 @@ preconfig() {
"
data_attr="
mfu_ghost_hits DERIVE LINE dummy
mfu_hits DERIVE LINE MFU
mfu_hits DERIVE LINE MFU
mru_ghost_hits DERIVE LINE dummy
mru_hits DERIVE LINE MRU
"
@ -219,12 +219,12 @@ preconfig() {
echo "Unknown function: $func"
exit 1
;;
esac
esac
}
do_config() {
local func=$1
local label_max_length=45
local label_max_length=45
local field type draw label
preconfig "$func"
@ -254,7 +254,7 @@ do_config() {
get_stats() {
local arcstats stat value
case $osname in
SunOS|illumos)
arcstats=$( kstat -p 'zfs:0:arcstats' | sed -e 's/:/ /g' | awk '{ print $4,$5 }' )
@ -286,8 +286,8 @@ get_stats() {
esac
while read -r stat value
do
printf -v "arcstats_${stat}" "%s" "$value"
do
printf -v "arcstats_${stat}" "%s" "$value"
# printf -v means indirect variable assignment (similar to eval)
done <<< "$arcstats"
}
@ -303,8 +303,8 @@ do_fetch() {
do
[ -z "$field" ] && continue
ref="arcstats_${field}"
value=${!ref:-0}
ref="arcstats_${field}"
value=${!ref:-0}
# ${!varname} means indirect evaluation (similar to eval)
echo "${field}.value ${value}"