This commit is contained in:
hengyunabc
2019-11-11 15:36:53 +08:00
parent fc74077a75
commit bd6db6c85d
@@ -159,7 +159,7 @@ public class ProfilerCommand extends AnnotatedCommand {
// load from arthas directory
profiler = AsyncProfiler.getInstance(libPath);
} else {
if (OSUtils.isLinux() || OSUtils.isLinux()) {
if (OSUtils.isLinux() || OSUtils.isMac()) {
throw new IllegalStateException("Can not find libasyncProfiler so, please check the arthas directory.");
} else {
throw new IllegalStateException("Current OS do not support AsyncProfiler.");