projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2ef357
)
email plugin: Write "0" values as well to distinguish from NaN's.
author
Sebastian Harl
<sh@tokkee.org>
Mon, 18 Dec 2006 14:17:48 +0000
(15:17 +0100)
committer
Florian Forster
<octo@huhu.verplant.org>
Mon, 18 Dec 2006 20:04:07 +0000
(21:04 +0100)
Signed-off-by: Sebastian Harl <sh@tokkee.org>
src/email.c
patch
|
blob
|
history
diff --git
a/src/email.c
b/src/email.c
index
7c23e9b
..
9fbe14c
100644
(file)
--- a/
src/email.c
+++ b/
src/email.c
@@
-756,9
+756,6
@@
static void type_submit (char *plugin, char *inst, int value)
char buf[BUFSIZE] = "";
int len = 0;
- if (0 == value)
- return;
-
len = snprintf (buf, BUFSIZE, "%u:%i", (unsigned int)curtime, value);
if ((len < 0) || (len >= BUFSIZE))
return;
@@
-772,9
+769,6
@@
static void score_submit (double value)
char buf[BUFSIZE] = "";
int len = 0;
- if (0.0 == value)
- return;
-
len = snprintf (buf, BUFSIZE, "%u:%.2f", (unsigned int)curtime, value);
if ((len < 0) || (len >= BUFSIZE))
return;