Skip to content

Commit 0076061

Browse files
Fix request sum returning non-totaled GPU
Signed-off-by: Michael Dresser <[email protected]>
1 parent 5383b73 commit 0076061

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/cmd/predict.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ func sumContainerResources(replicas int, spec v1.PodSpec) v1.ResourceList {
159159

160160
// Only include GPU data if we have any. Put under the generic "gpu"
161161
// name because we don't (currently) distinguish between providers.
162-
if !podGPU.IsZero() {
163-
result[resourceGPUKey] = *podGPU
162+
if !totalGPU.IsZero() {
163+
result[resourceGPUKey] = *totalGPU
164164
}
165165

166166
return result

0 commit comments

Comments
 (0)