summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2019-06-27 10:19:21 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2019-06-27 10:22:41 +0200
commit7fb3740044e3e37fd92e13f6258bb4f571c0bfd1 (patch)
treeb30d651d9ae6fcde94255290e8ca39578c54efb0
parentc07d9d2f20d26ef21aede121a60c92b9f0af109e (diff)
Fix strings serializationhalibut_7.99.2halibut/7.99.27.99.2
Also update and improve influxdb install instructions in README.md. Bug-AGL: SPEC-2578 Change-Id: I3a009efb2c1deed72635fbe18f586bddf14ddedb Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
-rw-r--r--README.md10
-rw-r--r--src/plugins/influxdb-writer.c2
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;