From 132d8131ae287bb0ab148aef545b9337e9703db6 Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Fri, 5 Jul 2019 09:32:26 +0200 Subject: Add comments and re-ident code Change-Id: Ibb4636bd968d6e4fd564ab40d5cf59e5a6ec6210 Signed-off-by: Sebastien Douheret --- src/plugins/tsdb.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/plugins/tsdb.h') diff --git a/src/plugins/tsdb.h b/src/plugins/tsdb.h index 8469ac0..ac5a103 100644 --- a/src/plugins/tsdb.h +++ b/src/plugins/tsdb.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018 "IoT.bzh" + * Copyright (C) 2018-2019 "IoT.bzh" * Author "Romain Forlot" * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -18,27 +18,27 @@ #ifndef _TSDB_H #define _TSDB_H -#include #include "curl-wrap.h" +#include #define ERROR -1 #define DEFAULT_DB "agl-garner" #define DEFAULT_DBHOST "localhost" #define DEFAULT_DBPORT "8086" -#define URL_MAXIMUM_LENGTH 2047 +#define URL_MAXIMUM_LENGTH 4096 enum db_available { - NODB = 0, - INFLUX = 1, - GRAPHITE = 2, - OPENTSDB = 4 + NODB = 0, + INFLUX = 1, + GRAPHITE = 2, + OPENTSDB = 4 }; struct reader_args { - const char *host; - const char *port; - u_int32_t delay; + const char* host; + const char* port; + u_int32_t delay; }; u_int64_t get_ts(); -- cgit 1.2.3-korg