mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
hooks: fix invalid setting name
This commit is contained in:
parent
dd1e47338a
commit
af30b2318e
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ static int stats_send_parse(struct hook *h, config_setting_t *cfg)
|
|||
else
|
||||
cerror(cfg, "Missing setting 'destination' for hook '%s'", plugin_name(h->_vt));
|
||||
|
||||
if (config_setting_lookup_string(cfg, "destination", &mode)) {
|
||||
if (config_setting_lookup_string(cfg, "mode", &mode)) {
|
||||
if (!strcmp(mode, "periodic"))
|
||||
p->mode = STATS_SEND_MODE_PERIODIC;
|
||||
else if (!strcmp(mode, "read"))
|
||||
|
|
Loading…
Add table
Reference in a new issue