If 0 than it is limitless, dont show any message

This commit is contained in:
Faik Uygur
2008-06-02 07:59:22 +00:00
parent 97d2961451
commit 6345722c7b
+1 -1
View File
@@ -187,7 +187,7 @@ class Fetcher:
def _get_bandwith_limit(self):
bandwidth_limit = ctx.config.options.bandwidth_limit or ctx.config.values.general.bandwidth_limit
if bandwidth_limit:
if bandwidth_limit and bandwidth_limit != "0":
ctx.ui.warning(_("Bandwidth usage is limited to %s KB/s") % bandwidth_limit)
return 1024 * int(bandwidth_limit)
else: