mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-12-04 12:58:24 +08:00
fix mac process list
This commit is contained in:
parent
0968217128
commit
c1abaa6fb5
@ -132,7 +132,7 @@ public class MacOSSystemCommander extends AbstractSystemCommander {
|
||||
DefaultSystemLog.getLog().debug("process item: {}", item);
|
||||
List<String> values = StrSplitter.splitTrim(item, StrUtil.SPACE, true);
|
||||
DefaultSystemLog.getLog().debug(JSON.toJSONString(values));
|
||||
processModel.setPid(Integer.parseInt(values.get(0)));
|
||||
processModel.setPid(Convert.toInt(values.get(0),0));
|
||||
processModel.setPort(values.get(6));
|
||||
processModel.setCommand(values.get(1));
|
||||
processModel.setCpu(values.get(2) + "%");
|
||||
|
Loading…
Reference in New Issue
Block a user