From e566c051f7abb65b8eac3e886a586145718417eb Mon Sep 17 00:00:00 2001 From: kailixu Date: Mon, 24 Jul 2023 09:03:19 +0800 Subject: [PATCH] chore: code optimization --- include/os/osSysinfo.h | 3 --- source/dnode/mgmt/mgmt_dnode/src/dmWorker.c | 1 - 2 files changed, 4 deletions(-) diff --git a/include/os/osSysinfo.h b/include/os/osSysinfo.h index 206dbecd21..a6a3655a55 100644 --- a/include/os/osSysinfo.h +++ b/include/os/osSysinfo.h @@ -18,9 +18,6 @@ #include "os.h" - - - #ifdef __cplusplus extern "C" { #endif diff --git a/source/dnode/mgmt/mgmt_dnode/src/dmWorker.c b/source/dnode/mgmt/mgmt_dnode/src/dmWorker.c index 783babcb66..a7f58b1cd0 100644 --- a/source/dnode/mgmt/mgmt_dnode/src/dmWorker.c +++ b/source/dnode/mgmt/mgmt_dnode/src/dmWorker.c @@ -32,7 +32,6 @@ static void *dmStatusThreadFp(void *param) { if (pMgmt->pData->dropped || pMgmt->pData->stopped) break; int64_t curTime = taosGetTimestampMs(); - int64_t cost = 0; float interval = (curTime - lastTime) / 1000.0f; if (interval >= tsStatusInterval) { dmSendStatusReq(pMgmt);