mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
add new samplelen field to node
This commit is contained in:
parent
7cedb0edcd
commit
a5cd67af79
2 changed files with 4 additions and 2 deletions
|
@ -49,6 +49,7 @@ struct node
|
|||
|
||||
int vectorize; /**< Number of messages to send / recv at once (scatter / gather) */
|
||||
int affinity; /**< CPU Affinity of this node */
|
||||
int samplelen; /**< The maximum number of values this node can receive. */
|
||||
|
||||
int id; /**< An id of this node which is only unique in the scope of it's super-node (VILLASnode instance). */
|
||||
|
||||
|
|
|
@ -66,9 +66,10 @@ int node_parse(struct node *n, json_t *cfg, const char *name)
|
|||
|
||||
n->name = strdup(name);
|
||||
|
||||
ret = json_unpack_ex(cfg, &err, 0, "{ s: s, s?: i }",
|
||||
ret = json_unpack_ex(cfg, &err, 0, "{ s: s, s?: i, s?: i }",
|
||||
"type", &type,
|
||||
"vectorize", &n->vectorize
|
||||
"vectorize", &n->vectorize,
|
||||
"samplelen", &n->samplelen
|
||||
);
|
||||
if (ret)
|
||||
jerror(&err, "Failed to parse node '%s'", node_name(n));
|
||||
|
|
Loading…
Add table
Reference in a new issue