From: Florian Forster Date: Thu, 18 Jun 2015 12:45:02 +0000 (+0200) Subject: threshold plugin: Fix "Dead increment" warnings. X-Git-Tag: collectd-5.5.1~98^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=23ef1eef2328540d9742b7ac7f3cf192143423c1;p=collectd.git threshold plugin: Fix "Dead increment" warnings. --- diff --git a/src/threshold.c b/src/threshold.c index 591e2dd6..4a840bb9 100644 --- a/src/threshold.c +++ b/src/threshold.c @@ -627,8 +627,6 @@ static int ut_report_state (const data_set_t *ds, else status = ssnprintf (buf, bufsize, ": All data sources are within range again."); - buf += status; - bufsize -= status; } else { @@ -696,8 +694,6 @@ static int ut_report_state (const data_set_t *ds, (state == STATE_ERROR) ? "failure" : "warning", (values[ds_index] < min) ? min : max); } - buf += status; - bufsize -= status; } plugin_dispatch_notification (&n);