Commit a804a54c authored by Joanne Hugé's avatar Joanne Hugé

Fix histogram printing mistakes

parent b62397e6
......@@ -307,8 +307,8 @@ static void print_histograms() {
if (tsn_task == SEND_PACKET_TASK) {
printf("{\"measure_sets\": [{"
"\"measure_type\": \"packet_send_timestamps\","
"\"props_names\": [\"user_space\", \"kernel_space\"],"
"\"units\": [\"us\", \"us\"],"
"\"props_names\": [\"kernel_space\"],"
"\"units\": [\"us\"],"
"\"props_type\": \"histogram\","
"\"metadata\": {\"i\": \"%dus\", \"duration\": \"%dh%d\", \"etf_offset\": \"%dus\",},"
"\"props\": [[",
......
......@@ -274,7 +274,7 @@ static void print_histograms() {
"\"props_names\": [\"kernel_space\"],"
"\"units\": [\"us\"],"
"\"props_type\": \"histogram\","
"\"metadata\": \"i\": \"%dus\", \"duration\": \"%dh%d\"},"
"\"metadata\": {\"i\": \"%dus\", \"duration\": \"%dh%d\"},"
"\"props\": [[",
interval, duration_hour, duration_minutes);
......@@ -288,7 +288,7 @@ static void print_histograms() {
max_jitter = histogram_max(jitter_hist, MAX_JITTER - 1);
min_jitter = histogram_min(jitter_hist, MAX_JITTER - 1);
printf("%s", enable_timestamps ? "]}, {" : "{\"measure_sets\": [{");
printf("%s", enable_timestamps ? "}, {" : "{\"measure_sets\": [{");
printf("\"measure_type\": \"packet_jitter\","
"\"props_names\": [\"jitter\"],"
......
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