summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2021-03-26 17:51:11 +0000
committerErik Johnston <erik@matrix.org>2021-03-26 17:51:11 +0000
commit9596641e1d2745bf2583fdd4fc772ee641a09301 (patch)
tree2c5620f85947608e0ba58e4e271ea219c102a62a
parentDon't ban __iter__ (diff)
downloadsynapse-9596641e1d2745bf2583fdd4fc772ee641a09301.tar.xz
Fix
-rw-r--r--synapse/util/caches/lrucache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/util/caches/lrucache.py b/synapse/util/caches/lrucache.py
index 570bcac1fd..176011faad 100644
--- a/synapse/util/caches/lrucache.py
+++ b/synapse/util/caches/lrucache.py
@@ -68,7 +68,7 @@ class _Node:
         self.callbacks = callbacks
 
         if asizeof:
-            self.memory = asizeof.asizeof(self)
+            self.memory = asizeof.asizeof(key) + asizeof.asizeof(value)
         else:
             self.memory = 0