From c15f01c4c5c03030fba0c3c5741df9fe6269e6f8 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Mon, 18 Dec 2006 15:17:48 +0100 Subject: [PATCH] email plugin: Write "0" values as well to distinguish from NaN's. Signed-off-by: Sebastian Harl --- src/email.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/email.c b/src/email.c index 7c23e9b4..9fbe14c4 100644 --- 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; -- 2.11.0