diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2018-04-08 23:57:15 +0200 |
---|---|---|
committer | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2018-07-10 23:41:13 +0200 |
commit | 9ef2eba5e4344c1370754004a997970ca11e16ca (patch) | |
tree | 1ac65ad55faa8f2c5eddb06a582ffaf4729706e6 /src/plugins/tsdb.c | |
parent | 631ca5d45726f7755fc39b60e0525e09230fbd95 (diff) |
Introduce thread management for future reading job
Change-Id: I1d47aef85c4a90d10d7cd5f85c357e9e35664836
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/plugins/tsdb.c')
-rw-r--r-- | src/plugins/tsdb.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/plugins/tsdb.c b/src/plugins/tsdb.c index 20a3e89..f7a8ee2 100644 --- a/src/plugins/tsdb.c +++ b/src/plugins/tsdb.c @@ -17,14 +17,6 @@ #include "tsdb.h" -int db_ping() -{ - int ret = 0; - if(influxdb_ping() == 0) ret = INFLUX; - - return ret; -} - int influxdb_ping() { int ret = 0; @@ -41,3 +33,11 @@ int influxdb_ping() curl_easy_cleanup(request); return ret; } + +int db_ping() +{ + int ret = 0; + if(influxdb_ping() == 0) ret = INFLUX; + + return ret; +} |