diff --git a/source/dnode/vnode/src/tsdb/tsdbRead.c b/source/dnode/vnode/src/tsdb/tsdbRead.c index 253680870c4109e0cb831273626a83e889b32eef..30ae83e1f2d4ea362c4b81ade2b5ef8d0531e301 100644 --- a/source/dnode/vnode/src/tsdb/tsdbRead.c +++ b/source/dnode/vnode/src/tsdb/tsdbRead.c @@ -4768,7 +4768,7 @@ int32_t tsdbGetFileBlocksDistInfo(STsdbReader* pReader, STableBlockDistInfo* pTa pTableBlockInfo->defMinRows = pc->minRows; pTableBlockInfo->defMaxRows = pc->maxRows; - int32_t bucketRange = ceil(((double)(pc->maxRows - pc->minRows)) / numOfBucket); + int32_t bucketRange = ceil(((pc->maxRows - pc->minRows)) / numOfBuckets); pTableBlockInfo->numOfFiles += 1;