From 6a46d675769918f2a9620783c93641c296f5f606 Mon Sep 17 00:00:00 2001 From: Jerry Gao <109158931+Sanhaoji2@users.noreply.github.com> Date: Wed, 25 Dec 2024 15:23:34 +0800 Subject: [PATCH] Jegao/fix metric logging (#613) * Fix logging issue * Fix logging issue --- src/index.cpp | 2 +- src/pq_flash_index.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.cpp b/src/index.cpp index 67254fff1..e6be778c2 100644 --- a/src/index.cpp +++ b/src/index.cpp @@ -659,7 +659,7 @@ void Index::load(const char *filename, uint32_t num_threads, ui reposition_frozen_point_to_end(); - _table_stats.tag_memory_usage = _table_stats.node_mem_usage + _table_stats.total_mem_usage = _table_stats.node_mem_usage + _table_stats.graph_mem_usage + _table_stats.label_mem_usage + _table_stats.tag_memory_usage; diff --git a/src/pq_flash_index.cpp b/src/pq_flash_index.cpp index 69386c7db..bfcc65487 100644 --- a/src/pq_flash_index.cpp +++ b/src/pq_flash_index.cpp @@ -1232,7 +1232,7 @@ int PQFlashIndex::load_from_separate_paths(uint32_t num_threads, cons delete[] norm_val; } - _table_stats.tag_memory_usage = _table_stats.node_mem_usage + _table_stats.total_mem_usage = _table_stats.node_mem_usage + _table_stats.graph_mem_usage + _table_stats.label_mem_usage + _table_stats.tag_memory_usage;