[collectd] [PATCH] email plugin: Write "0" values as well to
distinguish from NaN's.
Sebastian Harl
sh<span style="display: none;">.trailing-username</span>(a)<span style="display: none;">leading-domain.</span>tokkee.org
Mon Dec 18 15:17:48 CET 2006
Signed-off-by: Sebastian Harl <sh.trailing-username(a)leading-domain.tokkee.org>
---
src/email.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/src/email.c b/src/email.c
index 7c23e9b..9fbe14c 100644
--- a/src/email.c
+++ b/src/email.c
@@ -756,9 +756,6 @@ static void type_submit (char *plugin, c
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;
--
1.4.3.2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20061218/f3e2fb8e/attachment.pgp
More information about the collectd
mailing list