git://git.onelab.eu
/
util-vserver-pl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
dirty...dirty..dirty hack to get rid of r2q.
[util-vserver-pl.git]
/
python
/
bwlimit.py
diff --git
a/python/bwlimit.py
b/python/bwlimit.py
index
7b3cf05
..
58d3052
100644
(file)
--- a/
python/bwlimit.py
+++ b/
python/bwlimit.py
@@
-325,7
+325,10
@@
def stop(dev = dev):
'''
Turn off all queing. Stops all slice HTBS and reverts to pfifo_fast (the default).
'''
- tc("qdisc del dev %s root" % dev)
+ try:
+ for i in range(0,2):
+ tc("qdisc del dev %s root" % dev)
+ except: pass
def init(dev = dev, bwcap = bwmax):