mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
do not start with sequence no 0 because we cant detect restarts this way
This commit is contained in:
parent
f557f933f2
commit
1bf6d9e50a
1 changed files with 2 additions and 3 deletions
|
@ -57,8 +57,6 @@ int main(int argc, char *argv[])
|
|||
|
||||
/* Block until 1/p->rate seconds elapsed */
|
||||
while (limit-- > 0 || argc < 4) {
|
||||
m.sequence += timerfd_wait(tfd);
|
||||
|
||||
struct timespec ts = time_now();
|
||||
|
||||
m.ts.sec = ts.tv_sec;
|
||||
|
@ -66,8 +64,9 @@ int main(int argc, char *argv[])
|
|||
|
||||
msg_random(&m);
|
||||
msg_fprint(stdout, &m, MSG_PRINT_ALL & ~MSG_PRINT_OFFSET, 0);
|
||||
|
||||
fflush(stdout);
|
||||
|
||||
m.sequence += timerfd_wait(tfd);
|
||||
}
|
||||
|
||||
close(tfd);
|
||||
|
|
Loading…
Add table
Reference in a new issue