mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 18:36:41 +02:00
gpu: report system free memory instead of 0 (#5521)
This commit is contained in:
parent
4607c70641
commit
f8241bfba3
3 changed files with 26 additions and 3 deletions
|
@ -56,7 +56,7 @@ func GetCPUInfo() GpuInfoList {
|
|||
func GetCPUMem() (memInfo, error) {
|
||||
return memInfo{
|
||||
TotalMemory: uint64(C.getPhysicalMemory()),
|
||||
FreeMemory: 0,
|
||||
FreeMemory: uint64(C.getFreeMemory()),
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue