mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
Update lib/hooks/stats.cpp
This commit is contained in:
parent
a401555c93
commit
91cdf355a2
1 changed files with 3 additions and 3 deletions
|
@ -228,9 +228,9 @@ public:
|
|||
|
||||
stats = std::make_shared<villas::Stats>(buckets, warmup);
|
||||
|
||||
/* Register statistic object to path.
|
||||
/* Register statistic object to node.
|
||||
*
|
||||
* This allows the path code to update statistics. */
|
||||
* This allows the node code to update statistics. */
|
||||
if (node)
|
||||
node->stats = stats;
|
||||
|
||||
|
@ -278,7 +278,7 @@ Hook::Reason StatsReadHook::process(sample *smp)
|
|||
|
||||
/* Register hook */
|
||||
static char n[] = "stats";
|
||||
static char d[] = "Collect statistics for the current path";
|
||||
static char d[] = "Collect statistics for the current node";
|
||||
static HookPlugin<StatsHook, n, d, (int) Hook::Flags::NODE_READ> p;
|
||||
|
||||
} /* namespace node */
|
||||
|
|
Loading…
Add table
Reference in a new issue