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

Corrects a -infy bug for RAPL monitoring

parent aba4339d
No related branches found
No related tags found
No related merge requests found
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include <string.h> #include <string.h>
#include <getopt.h> #include <getopt.h>
#include <signal.h> #include <signal.h>
#include <inttypes.h>
#include "counters.h" #include "counters.h"
#include "rapl.h" #include "rapl.h"
...@@ -323,7 +324,7 @@ int main(int argc, char **argv) { ...@@ -323,7 +324,7 @@ int main(int argc, char **argv) {
fprintf(output, "%lld ", tmp_infiniband_values[i]-infiniband_values[i]); fprintf(output, "%lld ", tmp_infiniband_values[i]-infiniband_values[i]);
if(rapl_mode==0) if(rapl_mode==0)
for (int r=0; r<rapl->nb; r++) for (int r=0; r<rapl->nb; r++)
fprintf(output, "%ld ", tmp_rapl_values[r]-rapl_values[r]); fprintf(output, "%" PRIu64 " ", tmp_rapl_values[r]-rapl_values[r]);
if(load_mode==0) if(load_mode==0)
for(int i=0; i<10; i++) for(int i=0; i<10; i++)
fprintf(output, "%lld ", tmp_load_values[i]-load_values[i]); fprintf(output, "%lld ", tmp_load_values[i]-load_values[i]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment