diff options
author | Zac Medico <zmedico@gentoo.org> | 2012-10-08 13:44:22 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2012-10-08 13:44:22 -0700 |
commit | 91b253ba2f249b19d6cc68f51cd6b909a765a715 (patch) | |
tree | 4e92f49be790cfafedcc5b718bfbfb8ed661ad2d /pym/portage/util | |
parent | 1ddda9a8db7b1e09a04220a8677b60015b2fe849 (diff) | |
download | portage-91b253ba2f249b19d6cc68f51cd6b909a765a715.tar.gz portage-91b253ba2f249b19d6cc68f51cd6b909a765a715.tar.bz2 portage-91b253ba2f249b19d6cc68f51cd6b909a765a715.zip |
PollScheduler: disable default _loadavg_latency
Move the 30 second default to the Scheduler class, since that's the
only place that it's currently needed (all other schedulers have
relatively short-running jobs).
Diffstat (limited to 'pym/portage/util')
-rw-r--r-- | pym/portage/util/_async/AsyncScheduler.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/portage/util/_async/AsyncScheduler.py b/pym/portage/util/_async/AsyncScheduler.py index c6a37f59e..182e19ee8 100644 --- a/pym/portage/util/_async/AsyncScheduler.py +++ b/pym/portage/util/_async/AsyncScheduler.py @@ -66,7 +66,9 @@ class AsyncScheduler(AsynchronousTask, PollScheduler): def _start(self): self._term_check_id = self._event_loop.idle_add(self._termination_check) - if self._max_load is not None: + if self._max_load is not None and \ + self._loadavg_latency is not None and \ + (self._max_jobs is True or self._max_jobs > 1): # We have to schedule periodically, in case the load # average has changed since the last call. self._loadavg_check_id = self._event_loop.timeout_add( |