DataViews/CodeMetrics.py

changeset 5587
ea526b78ee6c
parent 5389
9b1c800daff3
child 5597
3d88d53f8c2b
diff -r 0e5421d679e7 -r ea526b78ee6c DataViews/CodeMetrics.py
--- a/DataViews/CodeMetrics.py	Tue Mar 07 18:46:09 2017 +0100
+++ b/DataViews/CodeMetrics.py	Tue Mar 07 18:53:18 2017 +0100
@@ -174,15 +174,15 @@
             counters = self.counters.setdefault(id, {})
             counters[key] = counters.setdefault(key, 0) + value
 
-    def getCounter(self, id, key):
+    def getCounter(self, counterId, key):
         """
         Public method used to get a specific counter value.
         
-        @param id id of the counter (string)
+        @param counterId id of the counter (string)
         @param key key of the value to be retrieved (string)
         @return the value of the requested counter (int)
         """
-        return self.counters.get(id, {}).get(key, 0)
+        return self.counters.get(counterId, {}).get(key, 0)
 
 
 def summarize(total, key, value):

eric ide

mercurial