mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 13:08:20 +00:00
No need to namespace Cluster:: functions in their own namespace
(cherry picked from e81856a4af
)
This commit is contained in:
parent
2ad80f8fb2
commit
11701d4734
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue