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:
parent
5ed12a4590
commit
002ef7bdac
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue