From: Naoki Kambe Date: Fri, 14 Dec 2012 08:42:29 +0000 (+0900) Subject: [2225_statistics] update document of Counters.stop() X-Git-Tag: bind10-1.1.0beta1-release~72^2~40^2~22 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e8ed9fd77960f2e3c4cfc5948d356b47524d441c;p=thirdparty%2Fkea.git [2225_statistics] update document of Counters.stop() explicitly distinguishing duration time from date time. Due to the review comment. --- diff --git a/src/lib/python/isc/statistics/counter.py b/src/lib/python/isc/statistics/counter.py index 2f520e64c2..65b6a4dd0f 100644 --- a/src/lib/python/isc/statistics/counter.py +++ b/src/lib/python/isc/statistics/counter.py @@ -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