Random Project

Plugin doesn’t return KB/s read and write

Very nice plugin. Only change I made was adding “-k” to the lines:
kbread=`$iostat $disk -k | grep $disk | awk ‘{print $3}’`
kbwritten=`$iostat $disk -k | grep $disk | awk ‘{print $4}’`

This is because the plugin appears to return blocks read and written per second instead of kilobytes read and written per second. The “-k” option for iostat fixes this.