summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-11-15 23:14:01 +0000
committerZac Medico <zmedico@gentoo.org>2008-11-15 23:14:01 +0000
commit1501b75beceefee931a10f5da3fb0661fd943dd0 (patch)
tree80cbc421eeafca0807eebd1d2218716d0de00e40
parent6788e80a70b6c012bfed3665d73dfbb9778fd806 (diff)
downloadportage-1501b75beceefee931a10f5da3fb0661fd943dd0.tar.gz
portage-1501b75beceefee931a10f5da3fb0661fd943dd0.tar.bz2
portage-1501b75beceefee931a10f5da3fb0661fd943dd0.zip
Fix logic inside PollScheduler._can_add_job() so that load average is
properly considered when a single job is running. svn path=/main/trunk/; revision=11958
-rw-r--r--pym/_emerge/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 23ca11fb6..dfe0be3c9 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -8558,7 +8558,7 @@ class PollScheduler(object):
if max_load is not None and \
(max_jobs is True or max_jobs > 1) and \
- self._running_job_count() > 1:
+ self._running_job_count() >= 1:
try:
avg1, avg5, avg15 = os.getloadavg()
except (AttributeError, OSError), e: