git://git.onelab.eu
/
util-vserver-pl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d628b4e
)
If no limits are currently set, do nothing.
author
Daniel Hokka Zakrisson
<dhokka@cs.princeton.edu>
Tue, 23 Feb 2010 22:36:14 +0000
(22:36 +0000)
committer
Daniel Hokka Zakrisson
<dhokka@cs.princeton.edu>
Tue, 23 Feb 2010 22:36:14 +0000
(22:36 +0000)
python/bwlimit.py
patch
|
blob
|
history
diff --git
a/python/bwlimit.py
b/python/bwlimit.py
index
b6ef291
..
a9e204a
100644
(file)
--- a/
python/bwlimit.py
+++ b/
python/bwlimit.py
@@
-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