Commit 8b723d2d authored by Vitaly Arbuzov's avatar Vitaly Arbuzov
Browse files

Add dict sizes to memory overhead data

parent ed138c0a
......@@ -1245,7 +1245,8 @@ struct redisMemOverhead *getMemoryOverheadData(void) {
mem = keyscount * dictEntryMemUsage() +
dbSlots(db) * sizeof(dictEntry*) +
keyscount * sizeof(robj);
keyscount * sizeof(robj) +
db->dict_count * sizeof(dict);
mh->db[mh->num_dbs].overhead_ht_main = mem;
mem_total+=mem;
......
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