Parcourir la source

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

Naoki Kambe il y a 12 ans
Parent
commit
96ee507bbc
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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):