discourse/discourse — pull request #550 by kubabrecka (2013-03-23 16:00:21+00:00)
Title: implement MemInfo.mem_total on Mac OS X

Currently, on Mac OS X, the XHR request to `/admin/dashboard` fails with an error at MemInfo.mem_total, because there is no `/proc/meminfo` on Mac OS. This implements a simple system detection and uses `sysctl` on Darwin kernels.