From ada70c7c532f8a1d1fe946dd7663c9e48d834a02 Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 14 Jul 2016 16:06:36 +0200 Subject: [PATCH] LFU simulator: remove dead code. --- utils/lru/lfu-simulation.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/utils/lru/lfu-simulation.c b/utils/lru/lfu-simulation.c index 2305fb3a..6aa5911a 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;