print one size for symbols

This commit is contained in:
Aleksey Kladov 2019-01-25 21:10:28 +03:00
parent e53eab3f25
commit 27a085f79e

View File

@ -138,7 +138,7 @@ impl SymbolIndex {
}
pub(crate) fn memory_size(&self) -> usize {
self.map.as_fst().size() * self.symbols.len() * mem::size_of::<FileSymbol>()
self.map.as_fst().size() + self.symbols.len() * mem::size_of::<FileSymbol>()
}
pub(crate) fn for_files(