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