Skip to content

Commit

Permalink
fix free gpu count in pool list (#943)
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-lombardi authored Feb 7, 2025
1 parent 152f3af commit d80f6ec
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/common/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,13 @@ func ToStruct(m map[string]string, out interface{}) error {
field.SetInt(val)
}

case reflect.Uint:
val, err := strconv.ParseUint(v, 10, 0)
if err != nil {
val = 0
}
field.SetUint(val)

case reflect.Uint32:
val, err := strconv.ParseUint(v, 10, 32)
if err != nil {
Expand Down

0 comments on commit d80f6ec

Please sign in to comment.