git://git.onelab.eu
/
nodemanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4462c5a
)
nm_enabled is true for positive values instead of nonzero values
author
David E. Eisenstat
<deisenst@cs.princeton.edu>
Wed, 24 Jan 2007 16:22:59 +0000
(16:22 +0000)
committer
David E. Eisenstat
<deisenst@cs.princeton.edu>
Wed, 24 Jan 2007 16:22:59 +0000
(16:22 +0000)
sliver_vs.py
patch
|
blob
|
history
diff --git
a/sliver_vs.py
b/sliver_vs.py
index
f93a4f0
..
e4856a6
100644
(file)
--- a/
sliver_vs.py
+++ b/
sliver_vs.py
@@
-113,7
+113,7
@@
class Sliver_VS(accounts.Account, vserver.VServer):
cpu_min = self.rspec['cpu_min']
cpu_share = self.rspec['cpu_share']
- if self.rspec['enabled']:
+ if self.rspec['enabled']
> 0
:
if cpu_min >= 50: # at least 5%: keep people from shooting themselves in the foot
logger.log('%s: setting cpu share to %d%% guaranteed' % (self.name, cpu_min/10.0))
self.set_sched_config(cpu_min, vserver.SCHED_CPU_GUARANTEED)