]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2225_statistics] update document as it is
authorNaoki Kambe <kambe@jprs.co.jp>
Fri, 14 Dec 2012 09:40:27 +0000 (18:40 +0900)
committerNaoki Kambe <kambe@jprs.co.jp>
Tue, 8 Jan 2013 04:36:21 +0000 (13:36 +0900)
It's due to the review comment.

src/lib/python/isc/statistics/counter.py

index a0eb67746b365b5f2491af7a7fa4dbfb8c385e37..55587f4d961703a20c575479c46c9e05a62a7170 100644 (file)
@@ -365,8 +365,10 @@ class Counters():
         dictionary."""
         # entire copy
         statistics_data = self._statistics._data.copy()
-        # If self.statistics_data contains nothing of zone name, it
-        # returns an empty dict.
+        # If there is no 'zones' found in statistics_data,
+        # i.e. statistics_data contains no per-zone counter, it just
+        # returns statistics_data because calculating total counts
+        # across the zone names isn't necessary.
         if self._perzone_prefix not in statistics_data:
             return statistics_data
         zones = statistics_data[self._perzone_prefix]