1
0
mirror of synced 2026-10-26 08:26:11 +08:00
This commit is contained in:
zhouzj
2021-03-11 17:49:07 +08:00
parent 5f293e1c25
commit 458a169c7c
2 changed files with 2 additions and 2 deletions

View File

@@ -31,7 +31,7 @@
2.SnowWorkerM2.cs 是传统雪花算法。
#### 效果
#### 效果:
1.js Number 类型最大数值:9007199254740992,本算法在保持并发性能(5W+/0.01s)和最大64个WorkerId(6bit)的同时,能用70年才到 js Number Max 值。

View File

@@ -226,7 +226,7 @@ namespace Yitter.IdGenerator
_CurrentSeqNumber = MinSeqNumber;
_IsOverCost = true;
_OverCostCountInOneTerm++;
_GenCountInOneTerm = 0;
_GenCountInOneTerm = 1;
return CalcId(_LastTimeTick);
}