1
0
Fork 0
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:
Steffen Vogel 2015-10-14 12:13:28 +02:00
parent f557f933f2
commit 1bf6d9e50a

View file

@ -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);