diff --git a/libCacheSim/bin/cachesim/cache_init.h b/libCacheSim/bin/cachesim/cache_init.h index 94f135ef..52c7363b 100644 --- a/libCacheSim/bin/cachesim/cache_init.h +++ b/libCacheSim/bin/cachesim/cache_init.h @@ -103,8 +103,8 @@ static inline cache_t *create_cache(const char *trace_path, cc_params.hashpower = MAX(cc_params.hashpower - 8, 16); cache = Hyperbolic_init(cc_params, eviction_params); } else if (strcasecmp(eviction_algo, "tinyLFU") == 0) { - if (eviction_params == NULL) { - cache = WTinyLFU_init(cc_params, eviction_params); + if (eviction_params == NULL || eviction_params[0] == '\0') { + cache = WTinyLFU_init(cc_params, NULL); } else { const char *window_size = strstr(eviction_params, "window-size="); if (window_size == NULL) {