1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

fix sequence numbers of "random" tool

This commit is contained in:
Steffen Vogel 2015-05-19 16:54:28 +02:00
parent bb758490c8
commit f59f40532b

View file

@ -53,7 +53,9 @@ int main(int argc, char *argv[])
fprintf(stderr, "# %-6s%-12s\n", "seq", "data");
/* Block until 1/p->rate seconds elapsed */
while ((m.sequence = timerfd_wait(tfd))) {
while (1) {
m.sequence += (uint16_t) timerfd_wait(tfd);
msg_random(&m);
msg_fprint(stdout, &m);