summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ec773c9)
raw | patch | inline | side by side (parent: ec773c9)
author | Florian Forster <octo@collectd.org> | |
Fri, 28 Oct 2016 08:44:47 +0000 (10:44 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Fri, 28 Oct 2016 11:43:54 +0000 (13:43 +0200) |
src/virt.c | patch | blob | history |
diff --git a/src/virt.c b/src/virt.c
index 6e1cd2194609c8368e90b7bfbb91b2b99de1effd..6d83a5c5694438531cbec809a3cf5688a2af3781 100644 (file)
--- a/src/virt.c
+++ b/src/virt.c
return 0;
}
if (strcasecmp (key, "BlockDeviceFormatBasename") == 0) {
- if (strcasecmp (value, "true") == 0)
- blockdevice_format_basename = 1;
- else if (strcasecmp (value, "false") == 0)
- blockdevice_format_basename = 0;
- else {
- ERROR (PLUGIN_NAME " plugin: unknown BlockDeviceFormatBasename: %s", value);
- return -1;
- }
+ blockdevice_format_basename = IS_TRUE (value);
return 0;
}
if (strcasecmp (key, "InterfaceDevice") == 0) {