summaryrefslogtreecommitdiff
path: root/src/shared_string.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared_string.cc')
-rw-r--r--src/shared_string.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared_string.cc b/src/shared_string.cc
index 01104e00..52605342 100644
--- a/src/shared_string.cc
+++ b/src/shared_string.cc
@@ -35,7 +35,7 @@ void StringRegistry::debug_stats() const
for (auto& st : m_strings)
{
total_refcount += st.second->refcount - 1;
- total_size += (int)st.second->content.size();
+ total_size += (int)st.second->length;
}
write_debug(" data size: " + to_string(total_size) + ", mean: " + to_string((float)total_size/count));
write_debug(" refcounts: " + to_string(total_refcount) + ", mean: " + to_string((float)total_refcount/count));