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

path: fix autodetection of poll-mode

This commit is contained in:
Steffen Vogel 2019-01-09 16:38:05 +01:00
parent 24dcd04b95
commit df3305e263

View file

@ -641,11 +641,7 @@ int path_parse(struct path *p, json_t *cfg, struct vlist *nodes)
if (p->poll == -1) {
struct path_source *ps = (struct path_source *) vlist_at(&p->sources, 0);
p->poll = (
p->rate > 0 ||
vlist_length(&p->sources) > 1
)
&& node_fd(ps->node) != 1;
p->poll = (p->rate > 0 || vlist_length(&p->sources) > 1) && node_fd(ps->node) != -1;
}
ret = vlist_destroy(&sources, NULL, false);