X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdisk.c;h=5df1c9827b465d136e185fa9b15925d142912c10;hb=0d5c879672770e3b8a740727fb223a6febdeaa27;hp=29aa979018b42bc9621d5b011a73daf0ae12722c;hpb=fd9c88963b04c9e9050a952ba0f018493e8b7638;p=collectd.git diff --git a/src/disk.c b/src/disk.c index 29aa9790..5df1c982 100644 --- a/src/disk.c +++ b/src/disk.c @@ -132,9 +132,7 @@ static int disk_config (const char *key, const char *value) else if (strcasecmp ("IgnoreSelected", key) == 0) { int invert = 1; - if ((strcasecmp ("True", value) == 0) - || (strcasecmp ("Yes", value) == 0) - || (strcasecmp ("On", value) == 0)) + if (IS_TRUE (value)) invert = 0; ignorelist_set_invert (ignorelist, invert); } @@ -212,7 +210,6 @@ static void disk_submit (const char *plugin_instance, vl.values = values; vl.values_len = 2; - vl.time = time (NULL); sstrncpy (vl.host, hostname_g, sizeof (vl.host)); sstrncpy (vl.plugin, "disk", sizeof (vl.plugin)); sstrncpy (vl.plugin_instance, plugin_instance,