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:
parent
c5e7045a41
commit
b1028e9829
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue