'Modify _EVAL_CHUNK to try to keep the amount of time that the
eval demon takes between _EVAL_DEMON_MIN and _EVAL_DEMON_MAX.
:param t: The amount of time that the eval demon took.'

def _adaptively_modify_eval_chunk(self, t):

    if ((t > self._EVAL_DEMON_MAX) and (self._EVAL_CHUNK > 5)):
        self._EVAL_CHUNK = min((self._EVAL_CHUNK - 1), max(int((self._EVAL_CHUNK * (self._EVAL_DEMON_MAX / t))), (self._EVAL_CHUNK - 10)))
    elif (t < self._EVAL_DEMON_MIN):
        self._EVAL_CHUNK = max((self._EVAL_CHUNK + 1), min(int((self._EVAL_CHUNK * (self._EVAL_DEMON_MIN / t))), (self._EVAL_CHUNK + 10)))
