X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Finterface.c;h=fead88859c08fd5e429a973a1bd79d9ed7898c12;hb=0d5c879672770e3b8a740727fb223a6febdeaa27;hp=7512c4ee3c21c7e07fc591f3c4bdf19f057746ac;hpb=424adfdc39de5a338bfef18a150c0557b79d3b49;p=collectd.git diff --git a/src/interface.c b/src/interface.c index 7512c4ee..fead8885 100644 --- a/src/interface.c +++ b/src/interface.c @@ -1,6 +1,6 @@ /** * collectd - src/interface.c - * Copyright (C) 2005-2007 Florian octo Forster + * Copyright (C) 2005-2008 Florian octo Forster * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -99,9 +99,7 @@ static int interface_config (const char *key, const char *value) else if (strcasecmp (key, "IgnoreSelected") == 0) { int invert = 1; - if ((strcasecmp (value, "True") == 0) - || (strcasecmp (value, "Yes") == 0) - || (strcasecmp (value, "On") == 0)) + if (IS_TRUE (value)) invert = 0; ignorelist_set_invert (ignorelist, invert); } @@ -158,7 +156,6 @@ static void if_submit (const char *dev, const char *type, vl.values = values; vl.values_len = 2; - vl.time = time (NULL); sstrncpy (vl.host, hostname_g, sizeof (vl.host)); sstrncpy (vl.plugin, "interface", sizeof (vl.plugin)); sstrncpy (vl.type, type, sizeof (vl.type));