Commit 4c33499c authored by Joanne Hugé's avatar Joanne Hugé

Add etf_offset to the histogram's metadata

parent 9ed02abf
...@@ -294,10 +294,10 @@ static void print_histograms() { ...@@ -294,10 +294,10 @@ static void print_histograms() {
"\"units\": [\"us\", \"us\"]," "\"units\": [\"us\", \"us\"],"
"\"props_type\": \"histogram\"," "\"props_type\": \"histogram\","
"\"metadata\": {" "\"metadata\": {"
"\"i\": \"%dus\", \"duration\": \"%dh%d\"" "\"i\": \"%dus\", \"duration\": \"%dh%d\", \"etf_offset\": \"%dus\","
"}," "},"
"\"props\": [", "\"props\": [",
interval, duration_hour, duration_minutes); interval, duration_hour, duration_minutes, param->etf_offset);
} else if (tsn_task == RTT_TASK) { } else if (tsn_task == RTT_TASK) {
printf("{\"measure_sets\": [{" printf("{\"measure_sets\": [{"
"\"measure_type\": \"packet_rtt\"," "\"measure_type\": \"packet_rtt\","
...@@ -305,10 +305,10 @@ static void print_histograms() { ...@@ -305,10 +305,10 @@ static void print_histograms() {
"\"units\": [\"us\"]," "\"units\": [\"us\"],"
"\"props_type\": \"histogram\"," "\"props_type\": \"histogram\","
"\"metadata\": {" "\"metadata\": {"
"\"i\": \"%dus\", \"duration\": \"%dh%d\"" "\"i\": \"%dus\", \"duration\": \"%dh%d\", \"etf_offset\": \"%dus\","
"}," "},"
"\"props\": [", "\"props\": [",
interval, duration_hour, duration_minutes); interval, duration_hour, duration_minutes, param->etf_offset);
} }
nb_hists = tsn_task == SEND_PACKET_TASK ? 2 : 1; nb_hists = tsn_task == SEND_PACKET_TASK ? 2 : 1;
......
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