Permalink
Browse files

Merge pull request #270 from tsaavik/master

Fixed bug in zfs plugin: zpool_iostat
  • Loading branch information...
2 parents ac8f463 + 2771a20 commit 32194315ba5046f9d95ff2ffe2940774e7d4d8f1 @kenyon kenyon committed Mar 13, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 plugins/zfs/zpool_iostat
View
@@ -40,9 +40,9 @@ echo $zlist | tr ' ' '\n' | while read iz; do
*) name=`echo $iz | gawk '{ gsub("[^a-zA-Z0-9_]", "_", $1); print $1 }'` ;;
esac
echo -n $name'_read.value '
- grep '^[ ]*'$zlabel $ztmp|gawk '{print $6}'|gawk '/M/ {print strtonum($1)*1000}; /K/ {print strtonum($1)}; /[0-9]$/ {print int($1)/1000}; /^0/ {print strtonum($1)}'
+ grep '^[ ]*'$zlabel $ztmp|gawk '{print $6}'|gawk '/M/ {print strtonum($1)*1000}; /K/ {print strtonum($1)}; /[0-9]$/ {print int($1)/1000}'
echo -n $name'_write.value '
- grep '^[ ]*'$zlabel $ztmp|gawk '{print $7}'|gawk '/M/ {print strtonum($1)*1000}; /K/ {print strtonum($1)}; /[0-9]$/ {print int($1)/1000}; /^0/ {print strtonum($1)}'
+ grep '^[ ]*'$zlabel $ztmp|gawk '{print $7}'|gawk '/M/ {print strtonum($1)*1000}; /K/ {print strtonum($1)}; /[0-9]$/ {print int($1)/1000}'
done
rm $ztmp; touch $ztmp

0 comments on commit 3219431

Please sign in to comment.