Browse Source

[2225_statistics] correct documentation of inc() and dec()

Naoki Kambe 12 years ago
parent
commit
6443e079d1
1 changed files with 8 additions and 6 deletions
  1. 8 6
      src/lib/python/isc/statistics/counters.py

+ 8 - 6
src/lib/python/isc/statistics/counters.py

@@ -303,19 +303,21 @@ class Counters():
                          identifier, step)
 
     def inc(self, *args):
-        """A incrementer for per-zone counter. Locks the thread
-        because it is considered to be invoked by a multi-threading
+        """A incrementer for a counter. Locks the thread because it is
+        considered to be invoked by a multi-threading
         caller. isc.cc.data.DataNotFoundError is raised when
         incrementing the counter of the item undefined in the spec
-        file."""
+        file. It calls internally a common helper function
+        _incdec()"""
         return self._incdec(*args)
 
     def dec(self, *args):
-        """A decrementer for axfr or ixfr running. Locks the thread
-        because it is considered to be invoked by a multi-threading
+        """A decrementer for a counter. Locks the thread because it is
+        considered to be invoked by a multi-threading
         caller. isc.cc.data.DataNotFoundError is raised when
         decrementing the counter of the item undefined in the spec
-        file."""
+        file. It calls internally a common helper function
+        _incdec()"""
         return self._incdec(*args, step=-1)
 
     def get(self, *args):