ansible: fix affinity.py test failure on 2 cores.

pull/564/head
David Wilson 6 years ago
parent 00ae90b2b2
commit de5c050707

@ -126,7 +126,7 @@ class Manager(object):
finally: finally:
self.state.lock.release() self.state.lock.release()
self.set_cpu(2 + (n % (self.cpu_count() - 2))) self.set_cpu(2 + (n % max(1, (self.cpu_count() - 2))))
manager = Manager() manager = Manager()

Loading…
Cancel
Save