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

stats: fail if node has no stats hook

This commit is contained in:
Steffen Vogel 2019-02-12 22:04:39 +01:00
parent c5e7045a41
commit b1028e9829

View file

@ -176,7 +176,7 @@ int stats_node_read(struct node *n, struct sample *smps[], unsigned cnt, unsigne
return 0;
if (!sn->node->stats)
return 0;
return -1;
task_wait(&sn->task);