diff options
author | antirez <antirez@gmail.com> | 2016-07-14 16:06:36 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2016-07-14 16:06:36 +0200 |
commit | ada70c7c532f8a1d1fe946dd7663c9e48d834a02 (patch) | |
tree | 4a7ce28d6d4854c420791411779f100f0e208cfd /utils | |
parent | fc92c667f7181a287fa97a028de16bdd037318b6 (diff) | |
download | redis-ada70c7c532f8a1d1fe946dd7663c9e48d834a02.tar.gz |
LFU simulator: remove dead code.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/lru/lfu-simulation.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/utils/lru/lfu-simulation.c b/utils/lru/lfu-simulation.c index 2305fb3a2..6aa5911ac 100644 --- a/utils/lru/lfu-simulation.c +++ b/utils/lru/lfu-simulation.c @@ -108,11 +108,6 @@ int main(void) { * 'switch_after' seconds. Then revert to flat access pattern. */ if (now-start < switch_after) { /* Power law. */ - #if 0 - idx = keyspace_size; - while(rand() % 2 && idx > 1) idx /= 2; - idx = rand() % idx; - #endif idx = 1; while((rand() % 21) != 0 && idx < keyspace_size) idx *= 2; if (idx > keyspace_size) idx = keyspace_size; |