X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fmodbus.c;h=11b9bf1be8a8d265ebdd4338ffe96fec5e0c7d19;hb=240a0b30cd9a478589ed00465bc081f810da05a9;hp=51447b162e0e2240386a8b01c7d94702d3e83af6;hpb=7b64cc91d3307179557b25b6ece2349a088f4294;p=collectd.git diff --git a/src/modbus.c b/src/modbus.c index 51447b16..11b9bf1b 100644 --- a/src/modbus.c +++ b/src/modbus.c @@ -257,7 +257,7 @@ static int mb_submit (mb_host_t *host, mb_slave_t *slave, /* {{{ */ if ((host == NULL) || (slave == NULL) || (data == NULL)) return (EINVAL); - if (host->interval <= 0) + if (host->interval == 0) host->interval = plugin_get_interval (); if (slave->instance[0] == 0)