Commit 0cc9d341 authored by Adam Wujek's avatar Adam Wujek 💬

abscal: fix display of scaled_nsecs

Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent 546edcec
...@@ -101,7 +101,7 @@ static int wrpc_net_recv(struct pp_instance *ppi, void *pkt, int len, ...@@ -101,7 +101,7 @@ static int wrpc_net_recv(struct pp_instance *ppi, void *pkt, int len,
((int)(t4.scaled_nsecs & 0xffff) * 1000) >> 16); ((int)(t4.scaled_nsecs & 0xffff) * 1000) >> 16);
/* Print the difference from T1, too */ /* Print the difference from T1, too */
pp_time_sub(&t4, &ppi->last_snt_time); pp_time_sub(&t4, &ppi->last_snt_time);
pp_printf(" %9d.%3d\n", (int)(t4.scaled_nsecs >> 16), pp_printf(" %9d.%03d\n", (int)(t4.scaled_nsecs >> 16),
((int)(t4.scaled_nsecs & 0xffff) * 1000) >> 16); ((int)(t4.scaled_nsecs & 0xffff) * 1000) >> 16);
} }
......
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