Fix timer

This commit is contained in:
Quentin Dufour 2019-03-25 17:38:05 +01:00
parent f7c9b9bcd6
commit e720930412

View file

@ -96,6 +96,7 @@ int on_timer(struct evt_core_ctx* ctx, struct evt_core_fdinfo* fdinfo) {
struct measure_conf* mc = fdinfo->other;
s = read(fdinfo->fd, &ticks, sizeof(uint64_t));
if (s == -1 && errno == EAGAIN) return 0;
if (s != sizeof(uint64_t)) {
perror("Read error");
exit(EXIT_FAILURE);
@ -124,7 +125,7 @@ int on_timer(struct evt_core_ctx* ctx, struct evt_core_fdinfo* fdinfo) {
perror("Send error");
//exit(EXIT_FAILURE);
}
return 1;
return 0;
}