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 committed by Cameron Sparr
parent 0acf15c025
commit ca1d2c7000
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,
}