From 8861c25d99892cb038f8fc6f795002f8edbac2df Mon Sep 17 00:00:00 2001 From: jcao219 Date: Sun, 10 Jul 2011 15:25:22 -0500 Subject: [PATCH] small bug --- oyoyo/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oyoyo/client.py b/oyoyo/client.py index b990ce9..a9c37b4 100644 --- a/oyoyo/client.py +++ b/oyoyo/client.py @@ -51,7 +51,7 @@ class TokenBucket(object): @property def tokens(self): - now = time() + now = time.time() if self._tokens < self.capacity: delta = self.fill_rate * (now - self.timestamp) self._tokens = min(self.capacity, self._tokens + delta)