提交 93f0fae9 编写于 作者: D Dennis Schneider

Only read the sysctl that is used on Mac OS X

上级 a2985153
......@@ -343,7 +343,7 @@ public class HardwareDescriptionFactory {
BufferedReader bi = null;
try {
Process proc = Runtime.getRuntime().exec("sysctl hw");
Process proc = Runtime.getRuntime().exec("sysctl hw.memsize");
bi = new BufferedReader(new InputStreamReader(proc.getInputStream()));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册