projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52cc5ce
)
Set timeout initially to 0 per reviewer's suggestion
author
Carlos Vicente
<cvicente@gmail.com>
Wed, 18 Oct 2017 17:12:05 +0000
(17:12 +0000)
committer
Carlos Vicente
<cvicente@gmail.com>
Wed, 18 Oct 2017 17:12:05 +0000
(17:12 +0000)
src/snmp.c
patch
|
blob
|
history
diff --git
a/src/snmp.c
b/src/snmp.c
index
f27e64f
..
1499cf6
100644
(file)
--- 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 = 0
xFFFFFFFFFFFFFFFF
;
+ 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 != 0
xFFFFFFFFFFFFFFFF
) {
+ if (host->timeout != 0) {
/* net-snmp expects microseconds */
sess.timeout = CDTIME_T_TO_US(host->timeout);
}