Skip to content
Snippets Groups Projects
Commit 614b2c7e authored by deuce's avatar deuce
Browse files

Fix all the bugs in last two commits.

parent 367f2502
Branches
Tags
No related merge requests found
......@@ -22,11 +22,18 @@ function cntnodes()
nodes_wfc=0
for(i=0; i<system.nodes; i++) {
if(system.node_list[i].status & NODE_WFC)
nodes_wfc++;
if(system.node_list[i].status & NODE_INUSE)
nodes_inuse++;
switch(system.node_list[i].status) {
case NODE_WFC:
NODES_WFC++;
break;
case NODE_LOGON:
case NODE_NEWUSER:
case NODE_INUSE:
case NODE_QUIET:
NODES_INUSE++;
break;
}
}
writeln("Nodes in use="+nodes_inuse+" Waiting for Caller="+nodes_wfc);
writeln("Nodes in use="+NODES_INUSE+" Waiting for Caller="+NODES_WFC);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment