From: Naoki Kambe Date: Tue, 27 Nov 2012 06:57:34 +0000 (+0900) Subject: [2225_statistics] put _COUNTER inside of the class scope X-Git-Tag: bind10-1.1.0beta1-release~72^2~40^2~61 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=48625915d6898ddca0eba5b3be512b1dcb29487b;p=thirdparty%2Fkea.git [2225_statistics] put _COUNTER inside of the class scope --- diff --git a/src/lib/python/isc/statistics/counter.py b/src/lib/python/isc/statistics/counter.py index 565454259d..83d94d0099 100644 --- a/src/lib/python/isc/statistics/counter.py +++ b/src/lib/python/isc/statistics/counter.py @@ -73,9 +73,6 @@ import threading import isc.config from datetime import datetime -# container of a counter object -_COUNTER = None - # static internal functions def _add_counter(element, spec, identifier): """Returns value of the identifier if the identifier is in the @@ -144,6 +141,8 @@ def _stop_timer(start_time, element, spec, identifier): class Counter(): """A counter class""" + # container of a counter object + _COUNTER = None def init(spec_file_name): """A creator method for a counter class. It creates a counter object by the module name of the given spec file. An argument is a