projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f4143e
)
threshold plugin: Fix "Dead increment" warnings.
author
Florian Forster
<octo@collectd.org>
Thu, 18 Jun 2015 12:45:02 +0000
(14:45 +0200)
committer
Florian Forster
<octo@collectd.org>
Thu, 18 Jun 2015 12:45:02 +0000
(14:45 +0200)
src/threshold.c
patch
|
blob
|
history
diff --git
a/src/threshold.c
b/src/threshold.c
index
591e2dd
..
4a840bb
100644
(file)
--- 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);