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

signal_genearator: show correct number of missed steps

This commit is contained in:
Steffen Vogel 2018-04-19 11:02:53 +02:00
parent 35cc8ca6e8
commit 5f498752f9

View file

@ -223,7 +223,7 @@ int signal_generator_read(struct node *n, struct sample *smps[], unsigned cnt)
/* Block until 1/p->rate seconds elapsed */
steps = task_wait(&s->task);
if (steps > 1)
warn("Missed steps: %u", steps);
warn("Missed steps: %u", steps-1);
ts = time_now();
}