[or-cvs] [thandy/master] If we have more than we want, we have too much, not the other way.

Nick Mathewson nickm at seul.org
Tue Aug 25 21:01:44 UTC 2009


Author: Sebastian Hahn <sebastian at torproject.org>
Date: Fri, 26 Jun 2009 21:38:32 +0200
Subject: If we have more than we want, we have too much, not the other way.
Commit: 8746f89a3a459b8b502a7d40653788d6a7e52a5c

---
 lib/thandy/download.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/thandy/download.py b/lib/thandy/download.py
index 3756a25..fb1b9f3 100644
--- a/lib/thandy/download.py
+++ b/lib/thandy/download.py
@@ -470,7 +470,7 @@ class DownloadJob:
                 logging.info("Have stalled file for %s with %s bytes", url,
                              have_length)
                 if self._wantLength != None:
-                    if self._wantLength >= have_length:
+                    if self._wantLength <= have_length:
                         logging.warn("Stalled file is too long; removing it")
                         self._removeTmpFile()
                         haveStalled = False
-- 
1.5.6.5




More information about the tor-commits mailing list