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

json.reserve: accept integers as timestamps

This commit is contained in:
Steffen Vogel 2018-05-25 12:57:31 +02:00
parent 5ed12a4590
commit 002ef7bdac

View file

@ -135,7 +135,7 @@ static int json_reserve_unpack_sample(struct io *io, json_t *json_smp, struct sa
const char *name, *unit = NULL;
double value;
ret = json_unpack_ex(json_value, &err, 0, "{ s: s, s?: s, s: f, s?: f }",
ret = json_unpack_ex(json_value, &err, 0, "{ s: s, s?: s, s: f, s?: F }",
"name", &name,
"unit", &unit,
"value", &value,