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

signal: the signal node-type knows the number of values so we can save some space

This commit is contained in:
Steffen Vogel 2017-09-02 14:22:19 +02:00
parent 415cd0de09
commit a123736fbe

View file

@ -91,6 +91,9 @@ int signal_parse(struct node *n, json_t *cfg)
else
s->type = SIGNAL_TYPE_MIXED;
/* We know the expected number of values. */
n->samplelen = s->values;
return 0;
}