Skip to content
Snippets Groups Projects
Commit 36cd8ffb authored by Morris Jette's avatar Morris Jette
Browse files

Correct power management logic

parent 7a70580e
No related branches found
No related tags found
No related merge requests found
...@@ -84,9 +84,9 @@ extern void get_cluster_power(struct node_record *node_record_table_ptr, ...@@ -84,9 +84,9 @@ extern void get_cluster_power(struct node_record *node_record_table_ptr,
for (i = 0, node_ptr = node_record_table_ptr; i < node_record_count; for (i = 0, node_ptr = node_record_table_ptr; i < node_record_count;
i++, node_ptr++) { i++, node_ptr++) {
if (node_ptr->power) if (node_ptr->power)
alloc_watts += node_ptr->power->cap_watts; *alloc_watts += node_ptr->power->cap_watts;
if (node_ptr->energy) if (node_ptr->energy)
used_watts += node_ptr->energy->current_watts; *used_watts += node_ptr->energy->current_watts;
} }
if (debug_flag & DEBUG_FLAG_POWER) { if (debug_flag & DEBUG_FLAG_POWER) {
......
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