From 3b3051fbd83550316eb4b4535c4d2f764e855418 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Mon, 9 Aug 2010 22:03:02 +0200 Subject: [PATCH] =?utf8?q?libcollectdclient:=20Fixed=20handling=20of=20?= =?utf8?q?=E2=80=98U=E2=80=99=20(undef)=20in=20=E2=80=98PUTVAL=E2=80=99.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/libcollectdclient/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.30.2