Code

email plugin: Write "0" values as well to distinguish from NaN's.
authorSebastian Harl <sh@tokkee.org>
Mon, 18 Dec 2006 14:17:48 +0000 (15:17 +0100)
committerFlorian 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

index 7c23e9b4fe2d478441efcce640afd291b54208c0..9fbe14c4658e83388775de894616428feaf57246 100644 (file)
@@ -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;