From 93725a69353919b70ab1ed7a1dee8a99200d2f60 Mon Sep 17 00:00:00 2001
From: Brian Warner <warner@allmydata.com>
Date: Tue, 7 Oct 2008 13:19:45 -0700
Subject: [PATCH] util/limiter: add a repr

---
 src/allmydata/util/limiter.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/allmydata/util/limiter.py b/src/allmydata/util/limiter.py
index aaee2c7d..d3222a7b 100644
--- a/src/allmydata/util/limiter.py
+++ b/src/allmydata/util/limiter.py
@@ -13,6 +13,10 @@ class ConcurrencyLimiter:
         self.pending = []
         self.active = 0
 
+    def __repr__(self):
+        return "<Limiter with %d/%d/%d>" % (self.active, len(self.pending),
+                                            self.limit)
+
     def add(self, cb, *args, **kwargs):
         d = defer.Deferred()
         task = (cb, args, kwargs, d)
-- 
2.45.2