From f21c424ab56e2bfc3306b90db97eb166cf63755c Mon Sep 17 00:00:00 2001 From: Xargin Date: Mon, 9 Jul 2018 23:16:10 +0800 Subject: [PATCH] fix diagram --- ch6-cloud/ch6-07-dist-id.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ch6-cloud/ch6-07-dist-id.md b/ch6-cloud/ch6-07-dist-id.md index 7239d03..624754a 100644 --- a/ch6-cloud/ch6-07-dist-id.md +++ b/ch6-cloud/ch6-07-dist-id.md @@ -127,9 +127,9 @@ Epoch 就是本节开头讲的起始时间,NodeBits 指的是机器编号的 sonyflake 是 Sony 公司的一个开源项目,基本思路和 snowflake 差不多,不过位分配上稍有不同: ``` -+--------------------------------------------------------------------------+ ++-----------------------------------------------------------------------------+ | 1 Bit Unused | 39 Bit Timestamp | 8 Bit Sequence ID | 16 Bit Machine ID | -+--------------------------------------------------------------------------+ ++-----------------------------------------------------------------------------+ ``` 这里的时间只用了 39 个 bit,但时间的单位变成了 10ms,所以理论上比 41 位表示的时间还要久(174 years)。