From 605c1962c5cb71d2bbb26767d2a9629d2fe4af61 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Thu, 1 Aug 2013 09:14:52 -0400 Subject: MultiprocessingCore: added missing docstring --- src/lib/Bcfg2/Server/MultiprocessingCore.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/lib/Bcfg2/Server') diff --git a/src/lib/Bcfg2/Server/MultiprocessingCore.py b/src/lib/Bcfg2/Server/MultiprocessingCore.py index ce3343808..775131188 100644 --- a/src/lib/Bcfg2/Server/MultiprocessingCore.py +++ b/src/lib/Bcfg2/Server/MultiprocessingCore.py @@ -518,6 +518,12 @@ class Core(BuiltinCore): stats = dict() def _aggregate_statistics(newstats, prefix=None): + """ Aggregate a set of statistics from a child or parent + server core. This adds the statistics to the overall + statistics dict (optionally prepending a prefix, such as + "Child-1", to uniquely identify this set of statistics), + and aggregates it with the set of running totals that are + kept from all cores. """ for statname, vals in newstats.items(): if statname.startswith("ChildCore:"): statname = statname[5:] -- cgit v1.2.3-1-g7c22