refact
This commit is contained in:
parent
bd0127a566
commit
d24e31810d
|
@ -17,7 +17,7 @@
|
|||
#define TSDB_MAX_SUBBLOCKS 8
|
||||
static FORCE_INLINE int TSDB_KEY_FID(TSKEY key, int32_t days, int8_t precision) {
|
||||
if (key < 0) {
|
||||
return (int)(((key + 1) / tsMsPerDay[precision] / days + 1));
|
||||
return (int)((key + 1) / tsMsPerDay[precision] / days + 1);
|
||||
} else {
|
||||
return (int)((key / tsMsPerDay[precision] / days));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue