Fixed total memory reporting for Darwin systems. hw.memsize is reported as bytes instead of pages.

This commit is contained in:
subhachandrachandra 2015-08-21 15:15:19 -07:00
parent 3d05575e9d
commit a3c846b73e
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ func VirtualMemory() (*VirtualMemoryStat, error) {
}
ret := &VirtualMemoryStat{
Total: parsed[0] * p,
Total: parsed[0],
Free: parsed[1] * p,
}