Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
hzxuzhonghu committed Jul 1, 2020
1 parent 2328308 commit b077808
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/scheduler/api/node_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func (ni *NodeInfo) setNodeGPUInfo(node *v1.Node) {
}
gpuNumber := res.Value()
if gpuNumber == 0 {
klog.Warningf("invalid %s=%s", VolcanoGPUNumber, res)
klog.Warningf("invalid %s=%s", VolcanoGPUNumber, res.String())
}

memoryPerCard := uint(totalMemory / gpuNumber)
Expand Down
2 changes: 1 addition & 1 deletion pkg/scheduler/api/pod_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func GetGPUIndex(pod *v1.Pod) int {
if found {
id, err := strconv.Atoi(value)
if err != nil {
klog.Error("invalid %s=%s", GPUIndex, value)
klog.Errorf("invalid %s=%s", GPUIndex, value)
return -1
}
return id
Expand Down

0 comments on commit b077808

Please sign in to comment.