Commit 10b90dfa authored by Joanne Hugé's avatar Joanne Hugé

Fix integer type issue

parent 904167ed
...@@ -232,7 +232,7 @@ int main(int argc, char *argv[]) { ...@@ -232,7 +232,7 @@ int main(int argc, char *argv[]) {
// Critical TSN task // Critical TSN task
static void do_tsn_task(struct thread_param *param, uint64_t next_txtime) { static void do_tsn_task(struct thread_param *param, uint64_t next_txtime) {
struct timespec t1, t2; struct timespec t1, t2;
uint64_t rtt_us; int rtt_us;
// One way packet sending // One way packet sending
if (tsn_task == SEND_PACKET_TASK) { if (tsn_task == SEND_PACKET_TASK) {
...@@ -255,7 +255,7 @@ static void do_tsn_task(struct thread_param *param, uint64_t next_txtime) { ...@@ -255,7 +255,7 @@ static void do_tsn_task(struct thread_param *param, uint64_t next_txtime) {
if(enable_histograms) { if(enable_histograms) {
rtt_us = param->stats.rtt / 1000; rtt_us = param->stats.rtt / 1000;
if(rtt_us > MAX_HIST_VAL) { if(rtt_us > MAX_HIST_VAL) {
fprintf(stderr, "RTT value higher than MAX_HIST_VAL : %" PRIu64 " ( > %" PRIu64 ")\n", rtt_us, MAX_HIST_VAL); fprintf(stderr, "RTT value higher than MAX_HIST_VAL : %d ( > %d)\n", rtt_us, MAX_HIST_VAL);
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
histograms[0][param->stats.rtt]++; histograms[0][param->stats.rtt]++;
......
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