If no limits are currently set, do nothing.
authorDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Tue, 23 Feb 2010 22:36:14 +0000 (22:36 +0000)
committerDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Tue, 23 Feb 2010 22:36:14 +0000 (22:36 +0000)
python/bwlimit.py

index b6ef291..a9e204a 100644 (file)
@@ -679,6 +679,9 @@ def main():
         elif opt == '-h':
             usage()
 
+    if bwcap == -1:
+        return 0
+
     if len(argv):
         if argv[0] == "init" or (argv[0] == "on" and len(argv) == 1):
             # (Re)initialize