disk plugin: Fix compatibility for Mac OS X 10.10.
authorRobert Viduya <robert@oit.gatech.edu>
Wed, 3 Jun 2015 12:34:37 +0000 (08:34 -0400)
committerFlorian Forster <octo@collectd.org>
Sat, 6 Jun 2015 19:07:42 +0000 (21:07 +0200)
commit79d6f5003215a462a17916dbddd45435ce740e5a
treecd091e001c851f210abb3844ddbb98a2be884b12
parente0683047a42e217c352c2419532b8e029f9f3f0a
disk plugin: Fix compatibility for Mac OS X 10.10.

Here’s a fixed version of the disk plugin that makes it work under Mac
OSX 10.10, and hopefully previous releases. The original version was
looking for the disk name in one dictionary, but it was actually in
another. I suspect at some point, Apple moved the disk name property,
but I don’t have any previous releases to check.

I changed the code to look for the disk name in both dictionaries, so
hopefully it’s backward compatible.

Signed-off-by: Florian Forster <octo@collectd.org>
src/disk.c