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:
parent
415cd0de09
commit
a123736fbe
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue