Fixed total memory reporting for Darwin systems. hw.memsize is reported as bytes instead of pages.
This commit is contained in:
parent
0acf15c025
commit
ca1d2c7000
|
@ -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