diff --git a/server/src/gtfpga.c b/server/src/gtfpga.c index 8f753bbca..ecdcc1167 100644 --- a/server/src/gtfpga.c +++ b/server/src/gtfpga.c @@ -209,7 +209,7 @@ int gtfpga_open(struct node *n) struct itimerspec its = { .it_interval = time_from_double(1 / g->rate), - .it_value = { 1, 0 } + .it_value = { 0, 1 } }; ret = timerfd_settime(g->fd_irq, 0, &its, NULL); if (ret) diff --git a/server/src/path.c b/server/src/path.c index 031b1383c..a9297c5c2 100644 --- a/server/src/path.c +++ b/server/src/path.c @@ -151,7 +151,7 @@ int path_start(struct path *p) if (p->rate) { struct itimerspec its = { .it_interval = time_from_double(1 / p->rate), - .it_value = { 1, 0 } + .it_value = { 0, 1 } }; p->tfd = timerfd_create(CLOCK_REALTIME, 0); diff --git a/server/src/random.c b/server/src/random.c index 4e9da6238..321b95ec4 100644 --- a/server/src/random.c +++ b/server/src/random.c @@ -42,7 +42,7 @@ int main(int argc, char *argv[]) /* Setup timer */ struct itimerspec its = { .it_interval = time_from_double(1 / rate), - .it_value = { 1, 0 } + .it_value = { 0, 1 } }; int tfd = timerfd_create(CLOCK_REALTIME, 0);