From: Sebastian Harl Date: Mon, 9 Aug 2010 20:03:02 +0000 (+0200) Subject: libcollectdclient: Fixed handling of ‘U’ (undef) in ‘PUTVAL’. X-Git-Tag: collectd-5.0.0-beta0~54 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3b3051fbd83550316eb4b4535c4d2f764e855418;p=collectd.git libcollectdclient: Fixed handling of ‘U’ (undef) in ‘PUTVAL’. --- diff --git a/src/libcollectdclient/client.c b/src/libcollectdclient/client.c index 0c748ba7..75ac7b6d 100644 --- a/src/libcollectdclient/client.c +++ b/src/libcollectdclient/client.c @@ -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); }