mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
LFU simulator: remove dead code.
This commit is contained in:
parent
fc92c667f7
commit
ada70c7c53
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user