1
0
mirror of synced 2026-02-20 20:07:56 +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个WorkerId6bit的同时能用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);
}