diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2019-07-09 00:17:39 +0200 |
---|---|---|
committer | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2019-08-01 17:46:22 +0200 |
commit | 903b0e9a002e0839943c5d734f3728114272ebc1 (patch) | |
tree | 428ed08e21cf0469bccc36c7b98204112b2c0124 /src/plugins/influxdb-reader.c | |
parent | 6c36102bf3964808f6f2db4161f79cf458880a5a (diff) |
Rework how to build dest DB URL
Change-Id: I5a351d6e2f5750dcb39bd9feff71abe930c052bb
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'src/plugins/influxdb-reader.c')
-rw-r--r-- | src/plugins/influxdb-reader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/influxdb-reader.c b/src/plugins/influxdb-reader.c index 98e5198..b6c9c25 100644 --- a/src/plugins/influxdb-reader.c +++ b/src/plugins/influxdb-reader.c @@ -225,7 +225,7 @@ static int influxdb_read(sd_event_source *s, uint64_t usec, void *userdata) char url[URL_MAXIMUM_LENGTH]; /* Safe limit for most popular web browser */ - make_url(url, sizeof(url), r_args->host, r_args->port, "query"); + make_url_db(url, sizeof(url), r_args->host, r_args->port, "query", DEFAULT_DB); curl = make_curl_query_get(source->api, url); curl_wrap_do(curl, influxdb_read_curl_cb, (void*)source->api); |