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:
c4ab647
)
Update CPU token buckets of running vserver
author
Andy Bavier
<acb@cs.princeton.edu>
Thu, 17 Jan 2008 20:57:51 +0000
(20:57 +0000)
committer
Andy Bavier
<acb@cs.princeton.edu>
Thu, 17 Jan 2008 20:57:51 +0000
(20:57 +0000)
python/vserver.py
patch
|
blob
|
history
diff --git
a/python/vserver.py
b/python/vserver.py
index
7937022
..
39275de
100644
(file)
--- a/
python/vserver.py
+++ b/
python/vserver.py
@@
-335,7
+335,7
@@
class VServer:
if cpu_share == 0:
self.config.unset('sched/idle-time')
- if self.
vm_running
:
+ if self.
is_running()
:
self.set_sched(cpu_min, cpu_share)
def set_sched(self, cpu_min, cpu_share):