Since this is constructed like: ADD_ID_TO_LIST(node[0].node_id, target_node_list_p); I guess this delivers 0 and then 8 in my system == the node_id instead of the index.
1796 if (ID_IS_IN_LIST(ix, p->node_list_p)) { 1797 proc_avg_node_CPUs_free += node[ix].CPUs_free; 1798 }
While the indexes are 0, 1
I think we'd want to convert our node_id->array-index mapper to a function and use it in the place we fixed first and this one. To then retest this.
Since this is constructed like: TO_LIST( node[0] .node_id, target_ node_list_ p);
ADD_ID_
I guess this delivers 0 and then 8 in my system
== the node_id instead of the index.
1796 if (ID_IS_IN_LIST(ix, p->node_list_p)) { node_CPUs_ free += node[ix].CPUs_free;
1797 proc_avg_
1798 }
While the indexes are 0, 1
I think we'd want to convert our node_id- >array- index mapper to a function and use it in the place we fixed first and this one. To then retest this.