Skip to content

Commit

Permalink
Merge pull request #616 from uniemimu/parsing
Browse files Browse the repository at this point in the history
gpu_nfdhook: make memory parsing more robust
  • Loading branch information
mythi committed Apr 10, 2021
2 parents d737b33 + bb44156 commit 7cbd4d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/gpu_nfdhook/labeler.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func (l *labeler) getTileMemoryAmount(gpuName string) (mem, numTiles uint64) {
continue
}

n, err := strconv.ParseUint(strings.TrimSpace(string(dat)), 10, 64)
n, err := strconv.ParseUint(strings.TrimSpace(string(dat)), 0, 64)
if err != nil {
klog.Warning("Skipping. Can't convert addr_range: ", err)
continue
Expand Down

0 comments on commit 7cbd4d0

Please sign in to comment.