diff --git a/src/plugins/monitor/src/monMain.c b/src/plugins/monitor/src/monMain.c index 7f0e656f4d623a334731302424fed05d199a87ca..4f3f57599ae50330d1cf748d2db8a16ae9d3fb87 100644 --- a/src/plugins/monitor/src/monMain.c +++ b/src/plugins/monitor/src/monMain.c @@ -704,10 +704,10 @@ static int32_t monBuildDnodeReqRateSql(char *sql) { float httpReqRate = info.httpReqNum / interval; float queryReqRate = info.queryReqNum / interval; float submitReqRate = info.submitReqNum / interval; + dnodeClearStatisInfo(); return sprintf(sql, ", %d, %f, %d, %f, %d, %f", info.httpReqNum, httpReqRate, info.queryReqNum - monFetchQueryReqCnt(), queryReqRate, info.submitReqNum - monFetchSubmitReqCnt(), submitReqRate); - dnodeClearStatisInfo(); } static int32_t monBuildDnodeErrorsSql(char *sql) {