Commit 622d9e4d authored by Joanne Hugé's avatar Joanne Hugé

Fix compilation error

parent cb90ef6c
...@@ -244,6 +244,7 @@ static void print_histograms() { ...@@ -244,6 +244,7 @@ static void print_histograms() {
uint64_t duration; uint64_t duration;
int duration_hour, duration_minutes, interval; int duration_hour, duration_minutes, interval;
int max_hist_val, min_hist_val;
clock_gettime(CLOCK_MONOTONIC, &measures_end); clock_gettime(CLOCK_MONOTONIC, &measures_end);
...@@ -263,7 +264,7 @@ static void print_histograms() { ...@@ -263,7 +264,7 @@ static void print_histograms() {
"}," "},"
"\"props\": [", interval, duration_hour, duration_minutes); "\"props\": [", interval, duration_hour, duration_minutes);
int max_hist_val = 0; max_hist_val = 0;
for (int i = 0; i < 2; i++) for (int i = 0; i < 2; i++)
for (int j = 0; j < MAX_HIST_VAL; j++) for (int j = 0; j < MAX_HIST_VAL; j++)
if (histograms[i][j]) if (histograms[i][j])
...@@ -279,7 +280,7 @@ static void print_histograms() { ...@@ -279,7 +280,7 @@ static void print_histograms() {
max_hist_val = 0; max_hist_val = 0;
for (int j = 0; j < MAX_HIST_VAL && histograms[2][j]; j++) for (int j = 0; j < MAX_HIST_VAL && histograms[2][j]; j++)
max_hist_val = j; max_hist_val = j;
min_hist_val = 0; min_hist_val = MAX_HIST_VAL - 1;
for (int j = MAX_HIST_VAL - 1; j >= 0 && histograms[2][j]; j--) for (int j = MAX_HIST_VAL - 1; j >= 0 && histograms[2][j]; j--)
min_hist_val = j; min_hist_val = j;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment