Commit 9c0e6694 authored by Joanne Hugé's avatar Joanne Hugé

Remove spaces in histogram display

parent 166ec762
......@@ -266,15 +266,15 @@ static void print_histograms() {
interval = param->interval / 1000;
printf("{\"measure_sets\": [{\
\"measure_type\": \"packet_send_timestamps\",\
\"props_names\": [\"user_space\", \"kernel_space\"],\
\"units\": [\"us\", \"us\"],\
\"props_type\": \"histogram\",\
\"metadata\": {\
\"i\": \"%dus\", \"duration\": \"%dh%d\"\
},\
\"props\": [", interval, duration_hour, duration_minutes);
printf("{\"measure_sets\": [{"
"\"measure_type\": \"packet_send_timestamps\","
"\"props_names\": [\"user_space\", \"kernel_space\"],"
"\"units\": [\"us\", \"us\"],"
"\"props_type\": \"histogram\","
"\"metadata\": {"
"\"i\": \"%dus\", \"duration\": \"%dh%d\""
"},"
"\"props\": [", interval, duration_hour, duration_minutes);
int max_hist_val = 0;
for (int i = 0; i < 2; i++)
......
......@@ -237,15 +237,15 @@ static void print_histograms() {
interval = (param->stats.min_interval + param->stats.max_interval) / 2;
printf("{\"measure_sets\": [{\
\"measure_type\": \"packet_recv_timestamps\",\
\"props_names\": [\"user_space\", \"kernel_space\"],\
\"units\": [\"us\", \"us\"],\
\"props_type\": \"histogram\",\
\"metadata\": {\
\"i\": \"%dus\", \"duration\": \"%dh%d\"\
},\
\"props\": [", interval, duration_hour, duration_minutes);
printf("{\"measure_sets\": [{"
"\"measure_type\": \"packet_recv_timestamps\","
"\"props_names\": [\"user_space\", \"kernel_space\"],"
"\"units\": [\"us\", \"us\"],"
"\"props_type\": \"histogram\","
"\"metadata\": {"
"\"i\": \"%dus\", \"duration\": \"%dh%d\""
"},"
"\"props\": [", interval, duration_hour, duration_minutes);
int max_hist_val = 0;
for (int i = 0; i < 2; i++)
......@@ -260,15 +260,15 @@ static void print_histograms() {
printf("%s", (i + 1 < 2 ? "], " : "]"));
}
printf( "]}, {\
\"measure_type\": \"packet_jitter\",\
\"props_names\": [\"jitter\"],\
\"units\": [\"us\"],\
\"props_type\": \"histogram\",\
\"metadata\": {\
\"i\": \"%dus\", \"duration\": \"%dh%d\"\
},\
\"props\": [[", interval, duration_hour, duration_minutes);
printf( "]}, {"
"\"measure_type\": \"packet_jitter\","
"\"props_names\": [\"jitter\"],"
"\"units\": [\"us\"],"
"\"props_type\": \"histogram\","
"\"metadata\": {"
"\"i\": \"%dus\", \"duration\": \"%dh%d\""
"},"
"\"props\": [[", interval, duration_hour, duration_minutes);
max_hist_val = 0;
for (int j = 0; j < MAX_HIST_VAL && histograms[2][j]; 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