diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-11-15 23:15:12 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-11-15 23:15:12 +0000 |
commit | 9756604663fe10a660b328de5dd450487ee5701b (patch) | |
tree | da9128250199076c1e5c75629f787b33fc2787f9 /pym/_emerge | |
parent | fcf54e8c78dd053e4b946c252b0d478ded4e783c (diff) | |
download | portage-9756604663fe10a660b328de5dd450487ee5701b.tar.gz portage-9756604663fe10a660b328de5dd450487ee5701b.tar.bz2 portage-9756604663fe10a660b328de5dd450487ee5701b.zip |
Fix logic inside PollScheduler._can_add_job() so that load average is
properly considered when a single job is running. (trunk r11958)
svn path=/main/branches/2.1.6/; revision=11959
Diffstat (limited to 'pym/_emerge')
-rw-r--r-- | pym/_emerge/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 5b672a853..de5c903ef 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -8542,7 +8542,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: |