From: Carlos Vicente Date: Wed, 18 Oct 2017 17:12:05 +0000 (+0000) Subject: Set timeout initially to 0 per reviewer's suggestion X-Git-Tag: collectd-5.8.0~37^2~1 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=dccb3732f7a7faa01e42bddd9b14d61138840d1a;p=collectd.git Set timeout initially to 0 per reviewer's suggestion --- diff --git a/src/snmp.c b/src/snmp.c index f27e64ff..1499cf6e 100644 --- a/src/snmp.c +++ b/src/snmp.c @@ -600,7 +600,7 @@ static int csnmp_config_add_host(oconfig_item_t *ci) { hd->interval = 0; /* These mean that we have not set a timeout or retry value */ - hd->timeout = 0xFFFFFFFFFFFFFFFF; + hd->timeout = 0; hd->retries = -1; for (int i = 0; i < ci->children_num; i++) { @@ -814,7 +814,7 @@ static void csnmp_host_open_session(host_definition_t *host) { } /* Set timeout & retries, if they have been changed from the default */ - if (host->timeout != 0xFFFFFFFFFFFFFFFF) { + if (host->timeout != 0) { /* net-snmp expects microseconds */ sess.timeout = CDTIME_T_TO_US(host->timeout); }