Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] demo-websocket 系统架构显示都是AMD64 #266

Open
Mengdal opened this issue Dec 13, 2023 · 1 comment
Open

[BUG] demo-websocket 系统架构显示都是AMD64 #266

Mengdal opened this issue Dec 13, 2023 · 1 comment
Assignees
Labels
bug 错误

Comments

@Mengdal
Copy link

Mengdal commented Dec 13, 2023

描述问题

websocket的DEMO中:sys.setOsArch(props.getProperty("os.arch"));
默认获取的是jdk的arch

期待的结果

期待获取实际本机的系统参数

解决办法

    String archRaw = systemInfo.getHardware().getProcessor().getIdentifier();
    sys.setOsArch(archRaw.substring(0,archRaw.indexOf(' ')));
@Mengdal Mengdal added the bug 错误 label Dec 13, 2023
@guxiren
Copy link

guxiren commented Dec 13, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 错误
Projects
None yet
Development

No branches or pull requests

3 participants