Skip to content

Commit

Permalink
trivial
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyang0 committed May 24, 2024
1 parent 7755ee6 commit 967a20f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gpu/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,8 @@ func (p Plugin) doGetNodeDeployCapacity(nodeResourceInfo *gputypes.NodeResourceI
capacityInfo.Capacity = prodCap
}
if capacityInfo.Capacity <= 0 {
// Capacity may be negative integer, set it to zero here
capacityInfo.Capacity = 0
break
}
}
Expand Down

0 comments on commit 967a20f

Please sign in to comment.