harmonytask test fix

This commit is contained in:
Andrew Jackson (Ajax) 2023-08-28 23:41:56 -05:00
parent 4dee670326
commit c73f35dcea

View File

@ -220,7 +220,7 @@ func (h *taskTypeHandler) AssertMachineHasCapacity() error {
return errors.New("Did not accept " + h.Name + " task: out of available GPU")
}
for _, u := range r.GpuRam {
if u > lo.Sum(h.Cost.GpuRam) {
if u >= lo.Sum(h.Cost.GpuRam) {
goto enoughGpuRam
}
}