From 6345722c7bc8cfef8928b6bafbd9355bc28d1dc3 Mon Sep 17 00:00:00 2001 From: Faik Uygur Date: Mon, 2 Jun 2008 07:59:22 +0000 Subject: [PATCH] If 0 than it is limitless, dont show any message --- pisi/fetcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pisi/fetcher.py b/pisi/fetcher.py index 0834b9cf..ef50e2de 100644 --- a/pisi/fetcher.py +++ b/pisi/fetcher.py @@ -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: