]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2225_statistics] update document of Counters.stop()
authorNaoki Kambe <kambe@jprs.co.jp>
Fri, 14 Dec 2012 08:42:29 +0000 (17:42 +0900)
committerNaoki Kambe <kambe@jprs.co.jp>
Tue, 8 Jan 2013 04:35:54 +0000 (13:35 +0900)
explicitly distinguishing duration time from date time.

Due to the review comment.

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

index 2f520e64c29fa103f8b05390d26b68c7c820b43e..65b6a4dd0fbe8afc4394d4bce32795f06a091965 100644 (file)
@@ -322,13 +322,13 @@ class Counters():
             isc.cc.data.set(self._start_time, identifier, _start_timer())
 
     def stop(self, *args):
-        """Sets duration time between corresponding time in
-        self._start_time and current time into the value of the
-        identifier. It deletes corresponding time in self._start_time
-        after setting is successfully done. In case of stopping the
-        timer which has never been started, it raises and does
-        nothing. But in case of stopping the time which isn't defined
-        in the spec file, it raises DataNotFoundError"""
+        """Sets duration time in seconds between corresponding date
+        time in self._start_time and current date time into the value
+        of the identifier. It deletes corresponding time in
+        self._start_time after setting is successfully done. In case
+        of stopping the timer which has never been started, it raises
+        and does nothing. But in case of stopping the time which isn't
+        defined in the spec file, it raises DataNotFoundError"""
         identifier = _concat(*args)
         with self._rlock:
             if self._disabled: return