mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
start random sequence numbers with 0
git-svn-id: https://zerberus.eonerc.rwth-aachen.de:8443/svn/s2ss/trunk@245 8ec27952-4edc-4aab-86aa-e87bb2611832
This commit is contained in:
parent
8bb14500fc
commit
8f976e192c
2 changed files with 2 additions and 1 deletions
|
@ -75,7 +75,6 @@ void msg_random(struct msg *m)
|
|||
m->data[i].f += (float) random() / RAND_MAX - .5;
|
||||
|
||||
m->endian = MSG_ENDIAN_HOST;
|
||||
m->sequence++;
|
||||
}
|
||||
|
||||
int msg_send(struct msg *m, struct node *n)
|
||||
|
|
|
@ -27,6 +27,8 @@ void tick(int sig, siginfo_t *si, void *ptr)
|
|||
msg_random(m);
|
||||
msg_fprint(stdout, m);
|
||||
fflush(stdout);
|
||||
|
||||
m->sequence++;
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
|
|
Loading…
Add table
Reference in a new issue