git://git.onelab.eu
/
util-vserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Don't barf when adjusting CPU share if there are no processes in context
[util-vserver.git]
/
python
/
bwlimit.py
diff --git
a/python/bwlimit.py
b/python/bwlimit.py
index
0ea2c8f
..
bfab4f7
100644
(file)
--- a/
python/bwlimit.py
+++ b/
python/bwlimit.py
@@
-80,7
+80,7
@@
def get_defaults(cap_file="/etc/planetlab/bwcap", default_cap="10mbit"):
return cap, cburst, share, quantum
-def init(eth):
+def init(eth
= "eth0"
):
global TC, OPS
cap, cburst, share, quantum = get_defaults()