summary refs log tree commit diff
diff options
context:
space:
mode:
-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