diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-08-01 09:14:52 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-08-01 09:14:52 -0400 |
commit | 605c1962c5cb71d2bbb26767d2a9629d2fe4af61 (patch) | |
tree | 4ca39dababbccd8d1f1ab55e1fceea16e75cc449 /src/lib/Bcfg2/Server | |
parent | 8b0ee3a67064bf810b3e6621ce128853eaf8a6f0 (diff) | |
download | bcfg2-605c1962c5cb71d2bbb26767d2a9629d2fe4af61.tar.gz bcfg2-605c1962c5cb71d2bbb26767d2a9629d2fe4af61.tar.bz2 bcfg2-605c1962c5cb71d2bbb26767d2a9629d2fe4af61.zip |
MultiprocessingCore: added missing docstring
Diffstat (limited to 'src/lib/Bcfg2/Server')
-rw-r--r-- | src/lib/Bcfg2/Server/MultiprocessingCore.py | 6 |
1 files changed, 6 insertions, 0 deletions
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:] |