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

Corrects a swapped calloc command

parent 9384c6d4
No related branches found
No related tags found
No related merge requests found
Pipeline #10763 passed
......@@ -157,8 +157,8 @@ unsigned int init_rapl(char *none, void **ptr)
}
}
rapl->values = calloc(sizeof(uint64_t), rapl->nb);
rapl->tmp_values = calloc(sizeof(uint64_t), rapl->nb);
rapl->values = calloc(rapl->nb, sizeof(uint64_t));
rapl->tmp_values = calloc(rapl->nb, sizeof(uint64_t));
_get_rapl(rapl->values, rapl);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment