Author: andar

Revision: 5890

Log:
        Consider 0 unlimited when displaying limits in the statusbar

Diff:
Modified: branches/1.2_RC/ChangeLog
===================================================================
--- branches/1.2_RC/ChangeLog   2009-10-28 17:38:35 UTC (rev 5889)
+++ branches/1.2_RC/ChangeLog   2009-10-28 17:43:29 UTC (rev 5890)
@@ -4,6 +4,7 @@
 
 ==== GtkUI ====
        * replace & with & in the details tab to ensure there are no markup 
errors
+       * Consider 0 unlimited when displaying limits in the statusbar
 
 ==== Web ====
        * Fix #1046 changing auto managed via the details tab
@@ -37,7 +38,7 @@
 
 ==== Console ====
        * Fix exception when using the 'halt' command
-       
+
 ==== Misc ====
        * Add man pages for deluge-console, deluge-gtk and deluge-web
 

Modified: branches/1.2_RC/deluge/ui/gtkui/statusbar.py
===================================================================
--- branches/1.2_RC/deluge/ui/gtkui/statusbar.py        2009-10-28 17:38:35 UTC 
(rev 5889)
+++ branches/1.2_RC/deluge/ui/gtkui/statusbar.py        2009-10-28 17:43:29 UTC 
(rev 5890)
@@ -342,7 +342,7 @@
 
     def update_download_label(self):
         # Set the download speed label
-        if self.max_download_speed < 0:
+        if self.max_download_speed <= 0:
             label_string = "%s/s" % self.download_rate
         else:
             label_string = "%s/s (%s %s)" % (
@@ -352,7 +352,7 @@
 
     def update_upload_label(self):
         # Set the upload speed label
-        if self.max_upload_speed < 0:
+        if self.max_upload_speed <= 0:
             label_string = "%s/s" % self.upload_rate
         else:
             label_string = "%s/s (%s %s)" % (

Modified: trunk/deluge/ui/gtkui/statusbar.py
===================================================================
--- trunk/deluge/ui/gtkui/statusbar.py  2009-10-28 17:38:35 UTC (rev 5889)
+++ trunk/deluge/ui/gtkui/statusbar.py  2009-10-28 17:43:29 UTC (rev 5890)
@@ -342,7 +342,7 @@
 
     def update_download_label(self):
         # Set the download speed label
-        if self.max_download_speed < 0:
+        if self.max_download_speed <= 0:
             label_string = "%s/s" % self.download_rate
         else:
             label_string = "%s/s (%s %s)" % (
@@ -352,7 +352,7 @@
 
     def update_upload_label(self):
         # Set the upload speed label
-        if self.max_upload_speed < 0:
+        if self.max_upload_speed <= 0:
             label_string = "%s/s" % self.upload_rate
         else:
             label_string = "%s/s (%s %s)" % (



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to