git://git.onelab.eu
/
util-vserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4e5b5be
)
- on: sanity check exempt rates
author
Mark Huang
<mlhuang@cs.princeton.edu>
Wed, 7 Feb 2007 04:21:11 +0000
(
04:21
+0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Wed, 7 Feb 2007 04:21:11 +0000
(
04:21
+0000)
python/bwlimit.py
patch
|
blob
|
history
diff --git
a/python/bwlimit.py
b/python/bwlimit.py
index
5c1716e
..
8fb6159
100644
(file)
--- a/
python/bwlimit.py
+++ b/
python/bwlimit.py
@@
-46,7
+46,7
@@
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
-# $Id: bwlimit.py,v 1.1
3 2006/11/27 22:32:59 mlhuang
Exp $
+# $Id: bwlimit.py,v 1.1
4 2006/12/13 21:48:14 faiyaza
Exp $
#
import sys, os, re, getopt
#
import sys, os, re, getopt
@@
-516,8
+516,12
@@
def on(xid, dev = dev, share = None, minrate = None, maxrate = None, minexemptra
minrate = bwmin
if minrate > maxrate:
minrate = maxrate
minrate = bwmin
if minrate > maxrate:
minrate = maxrate
+ if maxexemptrate < bwmin:
+ maxexemptrate = bwmin
if maxexemptrate > bwmax:
maxexemptrate = bwmax
if maxexemptrate > bwmax:
maxexemptrate = bwmax
+ if minexemptrate < bwmin:
+ minexemptrate = bwmin
if minexemptrate > maxexemptrate:
minexemptrate = maxexemptrate
if minexemptrate > maxexemptrate:
minexemptrate = maxexemptrate