Commit ada70c7c authored by antirez's avatar antirez
Browse files

LFU simulator: remove dead code.

parent fc92c667
...@@ -108,11 +108,6 @@ int main(void) { ...@@ -108,11 +108,6 @@ int main(void) {
* 'switch_after' seconds. Then revert to flat access pattern. */ * 'switch_after' seconds. Then revert to flat access pattern. */
if (now-start < switch_after) { if (now-start < switch_after) {
/* Power law. */ /* Power law. */
#if 0
idx = keyspace_size;
while(rand() % 2 && idx > 1) idx /= 2;
idx = rand() % idx;
#endif
idx = 1; idx = 1;
while((rand() % 21) != 0 && idx < keyspace_size) idx *= 2; while((rand() % 21) != 0 && idx < keyspace_size) idx *= 2;
if (idx > keyspace_size) idx = keyspace_size; if (idx > keyspace_size) idx = keyspace_size;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment