1
0
Fork 0
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:
Steffen Vogel 2017-06-29 19:19:52 +02:00
parent dd1e47338a
commit af30b2318e

View file

@ -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"))