diff options
author | Ben H <git@mumble.org.uk> | 2011-03-15 17:33:26 +1100 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2011-03-17 07:07:36 +1100 |
commit | d0f0f63f91a0eff72c1c528a6b5fb325bd9001d4 (patch) | |
tree | e60eb69f31394d21991acbb010601114e063b426 /spec/unit | |
parent | fd4d26014b9c86d169713d9f4374cc4477f22616 (diff) | |
download | facter-d0f0f63f91a0eff72c1c528a6b5fb325bd9001d4.tar.gz facter-d0f0f63f91a0eff72c1c528a6b5fb325bd9001d4.tar.xz facter-d0f0f63f91a0eff72c1c528a6b5fb325bd9001d4.zip |
(#6327) Memory facts should be available on Mac Darwin
There's no easy defined way of getting memory information from the command
line.
Copying mainly the OpenBSD facts, but having to pull in memory free from
the vm_stat utility, and parsing the weird vm.swapusage sysctl value for
swap. Parsing "top -l 1 -n 0" seemed an option, but that took over a
second to run each time, so this appears cheaper.
Diffstat (limited to 'spec/unit')
0 files changed, 0 insertions, 0 deletions