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:
parent
bb758490c8
commit
f59f40532b
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue