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:
parent
c1acbea2db
commit
277730393d
1 changed files with 1 additions and 2 deletions
|
@ -71,8 +71,7 @@ get_device_iostat_column() {
|
||||||
local stat_column="$2"
|
local stat_column="$2"
|
||||||
# convert all numeric values into kB
|
# convert all numeric values into kB
|
||||||
echo "$iostats" \
|
echo "$iostats" \
|
||||||
| gawk '{ if ($1 == "'"$device_label"'")
|
| gawk '{ if ($1 == "'"$device_label"'") print $'"$stat_column"'; }' \
|
||||||
print $'"$stat_column"'; }' \
|
|
||||||
| gawk '/M/ {print strtonum($1)*1000};
|
| gawk '/M/ {print strtonum($1)*1000};
|
||||||
/K/ {print strtonum($1)};
|
/K/ {print strtonum($1)};
|
||||||
/[0-9]$/ {print int($1)/1000}'
|
/[0-9]$/ {print int($1)/1000}'
|
||||||
|
|
Loading…
Reference in a new issue