Browse Source

[2225_statistics] rename _starttimer() to start() and change its interface

Naoki Kambe 12 years ago
parent
commit
96ee507bbc
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/lib/python/isc/statistics/counter.py

+ 2 - 1
src/lib/python/isc/statistics/counter.py

@@ -252,9 +252,10 @@ class _Counter():
         identifier = '/'.join(args)
         return _get_counter(self._statistics._data, identifier)
 
-    def _starttimer(self, identifier):
+    def start(self, *args):
         """Sets the value returned from _start_timer() as a value of
         the identifier in the self._start_time which is dict-type"""
+        identifier = '/'.join(args)
         isc.cc.data.set(self._start_time, identifier, _start_timer())
 
     def _stoptimer(self, identifier):