From: Naoki Kambe Date: Fri, 14 Dec 2012 09:40:27 +0000 (+0900) Subject: [2225_statistics] update document as it is X-Git-Tag: bind10-1.1.0beta1-release~72^2~40^2~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ef7776ea48e1ddbfb3b727836722cbfc8b65f4fa;p=thirdparty%2Fkea.git [2225_statistics] update document as it is It's due to the review comment. --- diff --git a/src/lib/python/isc/statistics/counter.py b/src/lib/python/isc/statistics/counter.py index a0eb67746b..55587f4d96 100644 --- a/src/lib/python/isc/statistics/counter.py +++ b/src/lib/python/isc/statistics/counter.py @@ -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]