We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 722f765 commit f249ad3Copy full SHA for f249ad3
libCacheSim/bin/cachesim/cache_init.h
@@ -103,8 +103,8 @@ static inline cache_t *create_cache(const char *trace_path,
103
cc_params.hashpower = MAX(cc_params.hashpower - 8, 16);
104
cache = Hyperbolic_init(cc_params, eviction_params);
105
} else if (strcasecmp(eviction_algo, "tinyLFU") == 0) {
106
- if (eviction_params == NULL) {
107
- cache = WTinyLFU_init(cc_params, eviction_params);
+ if (eviction_params == NULL || eviction_params[0] == '\0') {
+ cache = WTinyLFU_init(cc_params, NULL);
108
} else {
109
const char *window_size = strstr(eviction_params, "window-size=");
110
if (window_size == NULL) {
0 commit comments