]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kern/host.c
xnu-1504.9.17.tar.gz
[apple/xnu.git] / osfmk / kern / host.c
index 7a3fbf595f2da4f989f6e7e79ef902fd27868654..f77cccb71950ed197b10978d8a3d89c4b9368aab 100644 (file)
@@ -340,7 +340,7 @@ host_statistics(
 #if CONFIG_EMBEDDED
                stat32->wire_count = VM_STATISTICS_TRUNCATE_TO_32_BIT(vm_page_wire_count);
 #else
-               stat32->wire_count = VM_STATISTICS_TRUNCATE_TO_32_BIT(vm_page_wire_count + vm_page_throttled_count);
+               stat32->wire_count = VM_STATISTICS_TRUNCATE_TO_32_BIT(vm_page_wire_count + vm_page_throttled_count + vm_lopage_free_count);
 #endif
                stat32->zero_fill_count = VM_STATISTICS_TRUNCATE_TO_32_BIT(host_vm_stat.zero_fill_count);
                stat32->reactivations = VM_STATISTICS_TRUNCATE_TO_32_BIT(host_vm_stat.reactivations);
@@ -489,7 +489,7 @@ host_statistics64(
 #if CONFIG_EMBEDDED
                        stat->wire_count = vm_page_wire_count;
 #else
-                       stat->wire_count = vm_page_wire_count + vm_page_throttled_count;
+                       stat->wire_count = vm_page_wire_count + vm_page_throttled_count + vm_lopage_free_count;
 #endif
                        stat->zero_fill_count = host_vm_stat.zero_fill_count;
                        stat->reactivations = host_vm_stat.reactivations;