From: Ruben Kerkhof Date: Sun, 24 Jul 2016 15:21:56 +0000 (+0200) Subject: modbus plugin: unsigned value can't be negative X-Git-Tag: collectd-5.6.0~165 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7f077d4c5d39698eb16231f58fc817927aeafd1b;p=collectd.git modbus plugin: unsigned value can't be negative --- 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)