summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 52cc5ce)
raw | patch | inline | side by side (parent: 52cc5ce)
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 f27e64ff98b9446a542bb72cd7a800e41a0edae2..1499cf6e179c068127765e0370dd4adf7d453920 100644 (file)
--- a/src/snmp.c
+++ b/src/snmp.c
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++) {
}
/* 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);
}