Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
slabasan committed Mar 22, 2024
1 parent b391db7 commit d82a6b1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/variorum/Intel/intel_power_features.c
Original file line number Diff line number Diff line change
Expand Up @@ -1699,7 +1699,7 @@ void json_get_energy_data(json_t *get_energy_obj, off_t msr_rapl_unit, off_t msr
node_energy += rapl->pkg_joules[i] + rapl->dram_joules[i];
}

// Set the node energy key with pwrnode value.
// Set the node energy key with energy node value.
json_object_set_new(get_energy_obj, "energy_node_joules",
json_real(node_energy));
}
7 changes: 7 additions & 0 deletions src/variorum/Intel/intel_power_features.h
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,13 @@ int delta_rapl_data(
off_t msr_rapl_unit
);

void json_get_energy_data(
json_t *get_energy_obj,
off_t msr_rapl_unit,
off_t msr_pkg_energy_status,
off_t msr_dram_energy_status
);

#endif

///* intel_power_features.h */
Expand Down

0 comments on commit d82a6b1

Please sign in to comment.