diff options
| author | ruki <[email protected]> | 2022-05-21 20:37:46 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-05-21 20:37:46 +0800 |
| commit | 56defbb27a476695f6527ecd633140221a7b7148 (patch) | |
| tree | 2b716599a314c62a84c6c2402ca5c80a74bcd5b3 | |
| parent | ae7779636e29044be207d26d22a8cd27a223605d (diff) | |
fix error
| -rw-r--r-- | xmake/core/base/bloom_filter.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xmake/core/base/bloom_filter.lua b/xmake/core/base/bloom_filter.lua index fd3bd3a9d..2bb9574ae 100644 --- a/xmake/core/base/bloom_filter.lua +++ b/xmake/core/base/bloom_filter.lua @@ -178,11 +178,11 @@ function bloom_filter.new(opt) opt = opt or {} local probability = opt.probability or 0.001 local maps = { - [0.1] = bloom_filter.PROBABILITY_0_1 - [0.01] = bloom_filter.PROBABILITY_0_01 - [0.001] = bloom_filter.PROBABILITY_0_001 - [0.0001] = bloom_filter.PROBABILITY_0_0001 - [0.00001] = bloom_filter.PROBABILITY_0_00001 + [0.1] = bloom_filter.PROBABILITY_0_1, + [0.01] = bloom_filter.PROBABILITY_0_01, + [0.001] = bloom_filter.PROBABILITY_0_001, + [0.0001] = bloom_filter.PROBABILITY_0_0001, + [0.00001] = bloom_filter.PROBABILITY_0_00001, [0.000001] = bloom_filter.PROBABILITY_0_000001 } probability = assert(maps[probability], "invalid probability(%f)", probability) |
