1
0
mirror of synced 2025-12-10 23:28:16 +08:00

auto commit

This commit is contained in:
yitter
2023-09-06 20:55:45 +08:00
parent 15cf09927b
commit b5ee773830
3 changed files with 3 additions and 3 deletions

View File

@@ -261,7 +261,7 @@ static inline uint64_t CalcId(snowflake *flake)
static inline uint64_t CalcTurnBackId(snowflake *flake)
{
uint64_t result = (flake->_LastTimeTick << flake->_TimestampShift) + (flake->WorkerId << flake->SeqBitLength) + (flake->_TurnBackTimeTick);
uint64_t result = (flake->_LastTimeTick << flake->_TimestampShift) + (flake->WorkerId << flake->SeqBitLength) + (flake->_TurnBackIndex );
flake->_TurnBackTimeTick--;
return result;
}