diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/shard/VPTree.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/shard/VPTree.h b/include/shard/VPTree.h index 03645db..6f0423b 100644 --- a/include/shard/VPTree.h +++ b/include/shard/VPTree.h @@ -232,9 +232,8 @@ public: return m_data + idx; } - size_t get_memory_usage() { - return m_node_cnt * sizeof(vpnode); + return m_node_cnt * sizeof(vpnode) + m_reccnt * sizeof(R*); } private: |