Lines Matching refs:spares
691 good, bad, idle, spares = counts
692 if spares > bad + idle:
693 return ((good + bad +idle - spares, 0, 0),
694 (spares - bad - idle, bad, idle))
695 elif spares < bad:
696 return ((good, bad - spares, idle), (0, spares, 0))
698 return ((good, 0, idle + bad - spares), (0, bad, spares - bad))
703 good, bad, idle, spares = counts
704 if good > spares:
705 return ((good - spares, bad, idle), (spares, 0, 0))
706 elif good + bad > spares:
707 return ((0, good + bad - spares, idle),
708 (good, spares - good, 0))
710 return ((0, 0, good + bad + idle - spares),
711 (good, bad, spares - good - bad))