Darwin: replace vm_statistics64_* with vm_statistics_*

Works with:
- Darwin 9.8.0 (OS X 10.5.8) PPC
- Darwin 15.2.0 (OS X 10.11.2) Intel
This commit is contained in:
Michael Klein
2016-01-13 20:57:29 +01:00
parent 9c39422c71
commit d312510223
3 changed files with 7 additions and 7 deletions

View File

@ -218,7 +218,7 @@ double Platform_setCPUValues(Meter* mtr, int cpu) {
void Platform_setMemoryValues(Meter* mtr) {
DarwinProcessList *dpl = (DarwinProcessList *)mtr->pl;
vm_statistics64_t vm = &dpl->vm_stats;
vm_statistics_t vm = &dpl->vm_stats;
double page_K = (double)vm_page_size / (double)1024;
mtr->total = dpl->host_info.max_mem / 1024;