gpu: report system free memory instead of 0 (#5521)

This commit is contained in:
Jeffrey Morgan 2024-07-06 19:35:04 -04:00 committed by GitHub
parent 4607c70641
commit f8241bfba3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 26 additions and 3 deletions

View file

@ -56,7 +56,7 @@ func GetCPUInfo() GpuInfoList {
func GetCPUMem() (memInfo, error) {
return memInfo{
TotalMemory: uint64(C.getPhysicalMemory()),
FreeMemory: 0,
FreeMemory: uint64(C.getFreeMemory()),
}, nil
}