Skip to content
Snippets Groups Projects
Commit 8574c414 authored by rswindell's avatar rswindell
Browse files

Example node listing module.

parent 6d04397e
No related branches found
No related tags found
No related merge requests found
// nodelist.js
load("nodedefs.js");
for(n=0;n<system.node_list.length;n++) {
printf("Node %2d ",n+1);
if(system.node_list[n].status==NODE_INUSE) {
printf("%s ",system.node_list[n].useron_name);
printf(NodeAction[system.node_list[n].action],system.node_list[n].aux);
} else
printf(NodeStatus[system.node_list[n].status],system.node_list[n].aux);
printf("\r\n");
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment