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; }