2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

zpool_iostat: fix 'checkbashisms' issue

It was not a shell syntax problem - but just a checkbashisms issue.
This commit is contained in:
Lars Kruse 2018-03-08 03:00:18 +01:00
parent c1acbea2db
commit 277730393d

View File

@ -71,8 +71,7 @@ get_device_iostat_column() {
local stat_column="$2"
# convert all numeric values into kB
echo "$iostats" \
| gawk '{ if ($1 == "'"$device_label"'")
print $'"$stat_column"'; }' \
| gawk '{ if ($1 == "'"$device_label"'") print $'"$stat_column"'; }' \
| gawk '/M/ {print strtonum($1)*1000};
/K/ {print strtonum($1)};
/[0-9]$/ {print int($1)/1000}'