From 11701d473438d733bb6b240501fe04ca6b8c6a85 Mon Sep 17 00:00:00 2001 From: Christian Kreibich Date: Fri, 8 Nov 2024 13:03:57 -0800 Subject: [PATCH] No need to namespace Cluster:: functions in their own namespace (cherry picked from e81856a4af323b634af9936ead01f083ba84eceb) --- scripts/base/frameworks/cluster/main.zeek | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/base/frameworks/cluster/main.zeek b/scripts/base/frameworks/cluster/main.zeek index e3e45a0cbc..550d36e4e6 100644 --- a/scripts/base/frameworks/cluster/main.zeek +++ b/scripts/base/frameworks/cluster/main.zeek @@ -316,7 +316,7 @@ function nodes_with_type(node_type: NodeType): vector of NamedNode { return strcmp(n1$name, n2$name); }); } -function Cluster::get_node_count(node_type: NodeType): count +function get_node_count(node_type: NodeType): count { local cnt = 0; @@ -329,7 +329,7 @@ function Cluster::get_node_count(node_type: NodeType): count return cnt; } -function Cluster::get_active_node_count(node_type: NodeType): count +function get_active_node_count(node_type: NodeType): count { return node_type in active_node_ids ? |active_node_ids[node_type]| : 0; }