libcollectdclient: Fixed handling of ‘U’ (undef) in ‘PUTVAL’.
authorSebastian Harl <sh@tokkee.org>
Mon, 9 Aug 2010 20:03:02 +0000 (22:03 +0200)
committerSebastian Harl <sh@tokkee.org>
Mon, 9 Aug 2010 20:03:02 +0000 (22:03 +0200)
src/libcollectdclient/client.c

index 0c748ba..75ac7b6 100644 (file)
@@ -788,7 +788,7 @@ int lcc_putval (lcc_connection_t *c, const lcc_value_list_t *vl) /* {{{ */
     else if (vl->values_types[i] == LCC_TYPE_GAUGE)
     {
       if (isnan (vl->values[i].gauge))
-        SSTRCPY (command, ":U");
+        SSTRCATF (command, ":U");
       else
         SSTRCATF (command, ":%g", vl->values[i].gauge);
     }