highgroove/scout-plugins — pull request #60 by chendo (2012-04-17 07:47:34+00:00)
Title: iostat plugin now returns the device specified

Previously, the iostat plugin would have a glaring bug that would return the first entry in the diskstats where the device name you wanted included the entry name, rather the actual partition specified in the options.

Example:

If device was set to sda5, the previous code would hit sda, and thus "sda5".include?("sda") would return true, and it will return that entry.

I figured something was off when the numbers for two different partitions were exactly the same.