Commit bbe01d0b authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼

stats: fix state assertions in stats hook

parent a3c8b176
......@@ -232,12 +232,16 @@ public:
virtual void prepare()
{
assert(state == State::CHECKED);
stats = std::make_shared<villas::Stats>(buckets, warmup);
/* Register statistic object to path.
*
* This allows the path code to update statistics. */
node->stats = stats;
state = State::PREPARED;
}
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment