diff --git a/include/villas/node.h b/include/villas/node.h index 68fe08fff..ed49c6098 100644 --- a/include/villas/node.h +++ b/include/villas/node.h @@ -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). */ diff --git a/lib/node.c b/lib/node.c index ae150380c..a7bcf971d 100644 --- a/lib/node.c +++ b/lib/node.c @@ -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));