X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fvmem.c;h=d32f1db8cf42e9b2e155db93f0bf32df89f51e39;hb=61a1fa91ba73e4fe3a34949f77c5f017056f2b7a;hp=25f7c70cd3c15b581f0f22f3252e921c82373c33;hpb=efbeffe4cc730d6e14ba45dddfee9ab5229f07dc;p=collectd.git diff --git a/src/vmem.c b/src/vmem.c index 25f7c70c..d32f1db8 100644 --- a/src/vmem.c +++ b/src/vmem.c @@ -45,7 +45,6 @@ static void submit (const char *plugin_instance, const char *type, vl.values = values; vl.values_len = values_len; - vl.time = time (NULL); sstrncpy (vl.host, hostname_g, sizeof (vl.host)); sstrncpy (vl.plugin, "vmem", sizeof (vl.plugin)); if (plugin_instance != NULL) @@ -78,9 +77,7 @@ static int vmem_config (const char *key, const char *value) { if (strcasecmp ("Verbose", key) == 0) { - if ((strcasecmp ("true", value) == 0) - || (strcasecmp ("yes", value) == 0) - || (strcasecmp ("on", value) == 0)) + if (IS_TRUE (value)) verbose_output = 1; else verbose_output = 0;