Fixed total memory reporting for Darwin systems. hw.memsize is reported as bytes instead of pages.
This commit is contained in:
parent
3d05575e9d
commit
a3c846b73e
|
@ -53,7 +53,7 @@ func VirtualMemory() (*VirtualMemoryStat, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
ret := &VirtualMemoryStat{
|
ret := &VirtualMemoryStat{
|
||||||
Total: parsed[0] * p,
|
Total: parsed[0],
|
||||||
Free: parsed[1] * p,
|
Free: parsed[1] * p,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue