From: Sebastian Harl Date: Mon, 18 Dec 2006 14:17:48 +0000 (+0100) Subject: email plugin: Write "0" values as well to distinguish from NaN's. X-Git-Tag: collectd-3.11.0~11 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=c15f01c4c5c03030fba0c3c5741df9fe6269e6f8;p=collectd.git email plugin: Write "0" values as well to distinguish from NaN's. Signed-off-by: Sebastian Harl --- 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;