From 7fb3740044e3e37fd92e13f6258bb4f571c0bfd1 Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Thu, 27 Jun 2019 10:19:21 +0200 Subject: Fix strings serialization Also update and improve influxdb install instructions in README.md. Bug-AGL: SPEC-2578 Change-Id: I3a009efb2c1deed72635fbe18f586bddf14ddedb Signed-off-by: Sebastien Douheret --- README.md | 10 ++++++++-- src/plugins/influxdb-writer.c | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0cb3a7b..16dec1e 100644 --- a/README.md +++ b/README.md @@ -14,10 +14,16 @@ cmake .. && make ```bash # openSUSE installation instructions # For other distro, see docs: https://portal.influxdata.com/downloads -wget https://dl.influxdata.com/influxdb/releases/influxdb-1.5.1.x86_64.rpm -sudo zypper in ./influxdb-1.5.1.x86_64.rpm +wget https://dl.influxdata.com/influxdb/releases/influxdb-1.7.6.x86_64.rpm +sudo zypper in ./influxdb-1.7.6.x86_64.rpm # ignore warnings and force install +# OR +sudo zypper ar https://download.opensuse.org/repositories/server:/database/openSUSE_Leap_15.0/server:database.repo +sudo zypper ref +sudo zypper in influxdb + +# Manually start influxdb service sudo systemctl daemon-reload sudo systemctl start influxdb sudo systemctl status influxdb diff --git a/src/plugins/influxdb-writer.c b/src/plugins/influxdb-writer.c index e22c2bd..2856865 100644 --- a/src/plugins/influxdb-writer.c +++ b/src/plugins/influxdb-writer.c @@ -66,7 +66,7 @@ static void serialize_list_to_query(char *query, struct list *node, const char * } if(json_object_is_type(node->value, json_type_string)) - concatenate(query, json_object_get_string(node->value), "="); + concatenate_str(query, json_object_get_string(node->value), "="); else concatenate(query, json_object_to_json_string(node->value), "="); node = node->next; -- cgit 1.2.3-korg