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 config parser for stats hook

This commit is contained in:
Steffen Vogel 2017-08-23 15:49:22 +02:00
parent 41ceea7f48
commit 07340a582e

View file

@ -126,7 +126,7 @@ static int stats_collect_parse(struct hook *h, json_t *cfg)
const char *format = NULL;
const char *uri = NULL;
ret = json_unpack_ex(cfg, &err, 0, "{ s?: s, s?: b, s?: i, s?: s?: i, s?: s }"
ret = json_unpack_ex(cfg, &err, 0, "{ s?: s, s?: b, s?: i, s?: i, s?: s }",
"format", &format,
"verbose", &p->verbose,
"warmup", &p->warmup,