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

stats: fix state assertions in stats hook

This commit is contained in:
Steffen Vogel 2019-08-28 16:56:22 +02:00
parent a3c8b17665
commit bbe01d0bd2

View file

@ -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;
}
};