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

influxdb: fix index error

This commit is contained in:
Steffen Vogel 2020-03-10 22:25:07 +01:00 committed by Steffen Vogel
parent 06b374e05e
commit ebc60ed3a1

View file

@ -135,7 +135,7 @@ int influxdb_write(struct node *n, struct sample *smps[], unsigned cnt, unsigned
/* Fields */
for (unsigned j = 0; j < smp->length; j++) {
struct signal *sig = (struct signal *) vlist_at(smp->signals, j);
union signal_data *data = &smp->data[k];
union signal_data *data = &smp->data[j];
if (
sig->type != SignalType::BOOLEAN &&