Skip to content
Snippets Groups Projects
Commit a9bdf573 authored by Georges Da Costa's avatar Georges Da Costa
Browse files

Updates RAPL call

parent e677ba9b
No related branches found
No related tags found
No related merge requests found
......@@ -70,7 +70,8 @@ unsigned int init_rapl(char* none, void **ptr) {
rapl->packages = NULL;
rapl->zones = NULL;
rapl->nb_pkgs = powercap_rapl_get_num_packages();
rapl->nb_pkgs = powercap_rapl_get_num_instances();
if (rapl->nb_pkgs == 0) {
perror("no packages found (maybe the kernel module isn't loaded?)");
exit(-1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment