Skip to content

Commit

Permalink
fix: fix gpu list type error (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
CorrectRoadH authored Jan 25, 2024
1 parent 543cb76 commit 0978685
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions external/gpu.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ func NvidiaGPUInfoList() ([]NvidiaGPUInfo, error) {
return GPUInfos, nil
}

func GPUInfoList() ([]interface{}, error) {
GPUInfos := []interface{}{}
func GPUInfoList() ([]GPUInfo, error) {
GPUInfos := []GPUInfo{}
nvidiaGPUInfoList, err := NvidiaGPUInfoList()
if err != nil {
return nil, err
Expand All @@ -84,7 +84,7 @@ func GPUInfoList() ([]interface{}, error) {
Name: gpuInfo.Name,
TemperatureGPU: gpuInfo.TemperatureGPU,
}
}),
})...,
)
return GPUInfos, nil
}

0 comments on commit 0978685

Please sign in to comment.