From f7d630955066b20a05b072f4dc48883fd313e197 Mon Sep 17 00:00:00 2001 From: Bomin Zhang Date: Sun, 2 Aug 2020 09:55:17 +0800 Subject: [PATCH] TD-1033: fix compile error --- src/dnode/src/dnodeTelemetry.c | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/dnode/src/dnodeTelemetry.c b/src/dnode/src/dnodeTelemetry.c index 6963285da1..ce041d8303 100644 --- a/src/dnode/src/dnodeTelemetry.c +++ b/src/dnode/src/dnodeTelemetry.c @@ -18,7 +18,7 @@ #include "taoserror.h" #include "tglobal.h" #include "tutil.h" -#include "ttime.h" +#include "osTime.h" #include "tsocket.h" #include "tbuffer.h" #include "mnode.h" @@ -31,16 +31,9 @@ static sem_t tsExitSem; static pthread_t tsTelemetryThread; -#if 1 - #define TELEMETRY_SERVER "telemetry.taosdata.com" - #define TELEMETRY_PORT 80 - #define REPORT_INTERVAL 86400 -#else - #define TELEMETRY_SERVER "localhost" - #define TELEMETRY_PORT 80 - #define REPORT_INTERVAL 5 -#endif - +#define TELEMETRY_SERVER "telemetry.taosdata.com" +#define TELEMETRY_PORT 80 +#define REPORT_INTERVAL 86400 static void beginObject(SBufferWriter* bw) { tbufWriteChar(bw, '{'); -- GitLab