chore: code optimization
This commit is contained in:
parent
d597ba8e71
commit
e566c051f7
|
@ -18,9 +18,6 @@
|
|||
|
||||
#include "os.h"
|
||||
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue