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

fixed bug in NGSI combine

This commit is contained in:
Steffen Vogel 2015-10-17 18:30:54 +02:00
parent 447aea0323
commit a1dff8c3bb

View file

@ -103,7 +103,7 @@ static json_t* ngsi_build_entity(struct ngsi *i, struct msg *pool, int poolsize,
if (flags & NGSI_ENTITY_VALUES) { /* Build value vector */
json_t *values = json_array();
for (int k = 0; k < cnt; k++) {
struct msg *m = &pool[(first + k) % poolsize];
struct msg *m = &pool[(first + poolsize + k) % poolsize];
json_array_append_new(values, json_pack("[ f, f, i ]",
time_to_double(&MSG_TS(m)),