Skip to content

Commit

Permalink
Jegao/fix metric logging (#613)
Browse files Browse the repository at this point in the history
* Fix logging issue

* Fix logging issue
  • Loading branch information
Sanhaoji2 authored Dec 25, 2024
1 parent 18455de commit 6a46d67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ void Index<T, TagT, LabelT>::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;
Expand Down
2 changes: 1 addition & 1 deletion src/pq_flash_index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1232,7 +1232,7 @@ int PQFlashIndex<T, LabelT>::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;
Expand Down

0 comments on commit 6a46d67

Please sign in to comment.