summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-08-18 11:47:00 +0100
committerErik Johnston <erik@matrix.org>2015-08-18 11:47:00 +0100
commitd3da63f7667f93e30f6071c1f5a0a0ffb9419e79 (patch)
tree9b93cdf42fee9e5889bb28f7bbd255b0df04d8bb
parentFix pending_calls metric to not lie (diff)
downloadsynapse-d3da63f7667f93e30f6071c1f5a0a0ffb9419e79.tar.xz
Use more helpful variable names
-rw-r--r--synapse/metrics/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/metrics/__init__.py b/synapse/metrics/__init__.py
index 7b8a20108b..2e307a03ad 100644
--- a/synapse/metrics/__init__.py
+++ b/synapse/metrics/__init__.py
@@ -163,11 +163,11 @@ def runUntilCurrentTimer(func):
 
         # _newTimedCalls is one long list of *all* pending calls. Below loop
         # is based off of impl of reactor.runUntilCurrent
-        for p in reactor._newTimedCalls:
-            if p.time > now:
+        for delayed_call in reactor._newTimedCalls:
+            if delayed_call.time > now:
                 break
 
-            if p.delayed_time > 0:
+            if delayed_call.delayed_time > 0:
                 continue
 
             num_pending += 1