From: Marc Fournier Date: Tue, 15 Sep 2015 16:29:34 +0000 (+0200) Subject: snmp: remove warning now redundant with plugin.c X-Git-Tag: collectd-5.6.0~538^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=90e16c27f6a12ca66f9a0fe95805eeb69614bfb9;p=collectd.git snmp: remove warning now redundant with plugin.c --- diff --git a/src/snmp.c b/src/snmp.c index 18c52077..265b6225 100644 --- a/src/snmp.c +++ b/src/snmp.c @@ -1781,8 +1781,6 @@ static int csnmp_read_value (host_definition_t *host, data_definition_t *data) static int csnmp_read_host (user_data_t *ud) { host_definition_t *host; - cdtime_t time_start; - cdtime_t time_end; int status; int success; int i; @@ -1792,8 +1790,6 @@ static int csnmp_read_host (user_data_t *ud) if (host->interval == 0) host->interval = plugin_get_interval (); - time_start = cdtime (); - if (host->sess_handle == NULL) csnmp_host_open_session (host); @@ -1814,16 +1810,6 @@ static int csnmp_read_host (user_data_t *ud) success++; } - time_end = cdtime (); - if ((time_end - time_start) > host->interval) - { - WARNING ("snmp plugin: Host `%s' should be queried every %.3f " - "seconds, but reading all values takes %.3f seconds.", - host->name, - CDTIME_T_TO_DOUBLE (host->interval), - CDTIME_T_TO_DOUBLE (time_end - time_start)); - } - if (success == 0) return (-1);