From 3a9695b3f785e12f5564c4a3ed0034b9def929a4 Mon Sep 17 00:00:00 2001 From: "xiaolei.zl" Date: Fri, 13 Sep 2024 12:04:50 +0800 Subject: [PATCH] fix edge counting Committed-by: xiaolei.zl from Dev container --- flex/engines/http_server/actor/admin_actor.act.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flex/engines/http_server/actor/admin_actor.act.cc b/flex/engines/http_server/actor/admin_actor.act.cc index 1658024feeb6..f67e27e9dbde 100644 --- a/flex/engines/http_server/actor/admin_actor.act.cc +++ b/flex/engines/http_server/actor/admin_actor.act.cc @@ -64,9 +64,9 @@ gs::GraphStatistics get_graph_statistics(const gs::GraphDBSession& sess) { graph.get_ie_csr(dst_label_id, src_label_id, edge_label_id); size_t cur_edge_cnt = 0; if (oe_csr) { - cur_edge_cnt += oe_csr->size(); + cur_edge_cnt += oe_csr->edge_num(); } else if (ie_csr) { - cur_edge_cnt += ie_csr->size(); + cur_edge_cnt += ie_csr->edge_num(); } stat.total_edge_count += cur_edge_cnt; vertex_type_pair_statistics.emplace_back(