From 675d1219cd3ede7a9200a86fc617a69ffc5dcc2d Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Wed, 28 Oct 2009 17:43:29 +0000 Subject: [PATCH] Consider 0 unlimited when displaying limits in the statusbar --- deluge/ui/gtkui/statusbar.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/ui/gtkui/statusbar.py b/deluge/ui/gtkui/statusbar.py index a94775a55..3c5914fb2 100644 --- a/deluge/ui/gtkui/statusbar.py +++ b/deluge/ui/gtkui/statusbar.py @@ -342,7 +342,7 @@ class StatusBar(component.Component): 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 @@ class StatusBar(component.Component): 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)" % (