From 15d3bbf7a701b37829b995bf2e05f385151acc1c Mon Sep 17 00:00:00 2001 From: CrazyCoder <39661112+ZhaoGuorui666@users.noreply.github.com> Date: Tue, 14 May 2024 14:56:30 +0800 Subject: [PATCH] fix typo (#2830) --- .../core/command/monitor200/ProfilerCommand.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/core/src/main/java/com/taobao/arthas/core/command/monitor200/ProfilerCommand.java b/core/src/main/java/com/taobao/arthas/core/command/monitor200/ProfilerCommand.java index 467e219182..2ad257b7ee 100644 --- a/core/src/main/java/com/taobao/arthas/core/command/monitor200/ProfilerCommand.java +++ b/core/src/main/java/com/taobao/arthas/core/command/monitor200/ProfilerCommand.java @@ -233,29 +233,29 @@ public class ProfilerCommand extends AnnotatedCommand { private static AsyncProfiler profiler = null; static { - String profierSoPath = null; + String profilerSoPath = null; if (OSUtils.isMac()) { // FAT_BINARY support both x86_64/arm64 - profierSoPath = "async-profiler/libasyncProfiler-mac.so"; + profilerSoPath = "async-profiler/libasyncProfiler-mac.so"; } if (OSUtils.isLinux()) { if (OSUtils.isX86_64() && OSUtils.isMuslLibc()) { - profierSoPath = "async-profiler/libasyncProfiler-linux-musl-x64.so"; + profilerSoPath = "async-profiler/libasyncProfiler-linux-musl-x64.so"; } else if(OSUtils.isX86_64()){ - profierSoPath = "async-profiler/libasyncProfiler-linux-x64.so"; + profilerSoPath = "async-profiler/libasyncProfiler-linux-x64.so"; } else if (OSUtils.isArm64() && OSUtils.isMuslLibc()) { - profierSoPath = "async-profiler/libasyncProfiler-linux-musl-arm64.so"; + profilerSoPath = "async-profiler/libasyncProfiler-linux-musl-arm64.so"; } else if (OSUtils.isArm64()) { - profierSoPath = "async-profiler/libasyncProfiler-linux-arm64.so"; + profilerSoPath = "async-profiler/libasyncProfiler-linux-arm64.so"; } } - if (profierSoPath != null) { + if (profilerSoPath != null) { CodeSource codeSource = ProfilerCommand.class.getProtectionDomain().getCodeSource(); if (codeSource != null) { try { File bootJarPath = new File(codeSource.getLocation().toURI().getSchemeSpecificPart()); - File soFile = new File(bootJarPath.getParentFile(), profierSoPath); + File soFile = new File(bootJarPath.getParentFile(), profilerSoPath); if (soFile.exists()) { libPath = soFile.getAbsolutePath(); }