Skip to content

Commit 15d3bbf

Browse files
authored
fix typo (#2830)
1 parent b9fe1e1 commit 15d3bbf

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

core/src/main/java/com/taobao/arthas/core/command/monitor200/ProfilerCommand.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -233,29 +233,29 @@ public class ProfilerCommand extends AnnotatedCommand {
233233
private static AsyncProfiler profiler = null;
234234

235235
static {
236-
String profierSoPath = null;
236+
String profilerSoPath = null;
237237
if (OSUtils.isMac()) {
238238
// FAT_BINARY support both x86_64/arm64
239-
profierSoPath = "async-profiler/libasyncProfiler-mac.so";
239+
profilerSoPath = "async-profiler/libasyncProfiler-mac.so";
240240
}
241241
if (OSUtils.isLinux()) {
242242
if (OSUtils.isX86_64() && OSUtils.isMuslLibc()) {
243-
profierSoPath = "async-profiler/libasyncProfiler-linux-musl-x64.so";
243+
profilerSoPath = "async-profiler/libasyncProfiler-linux-musl-x64.so";
244244
} else if(OSUtils.isX86_64()){
245-
profierSoPath = "async-profiler/libasyncProfiler-linux-x64.so";
245+
profilerSoPath = "async-profiler/libasyncProfiler-linux-x64.so";
246246
} else if (OSUtils.isArm64() && OSUtils.isMuslLibc()) {
247-
profierSoPath = "async-profiler/libasyncProfiler-linux-musl-arm64.so";
247+
profilerSoPath = "async-profiler/libasyncProfiler-linux-musl-arm64.so";
248248
} else if (OSUtils.isArm64()) {
249-
profierSoPath = "async-profiler/libasyncProfiler-linux-arm64.so";
249+
profilerSoPath = "async-profiler/libasyncProfiler-linux-arm64.so";
250250
}
251251
}
252252

253-
if (profierSoPath != null) {
253+
if (profilerSoPath != null) {
254254
CodeSource codeSource = ProfilerCommand.class.getProtectionDomain().getCodeSource();
255255
if (codeSource != null) {
256256
try {
257257
File bootJarPath = new File(codeSource.getLocation().toURI().getSchemeSpecificPart());
258-
File soFile = new File(bootJarPath.getParentFile(), profierSoPath);
258+
File soFile = new File(bootJarPath.getParentFile(), profilerSoPath);
259259
if (soFile.exists()) {
260260
libPath = soFile.getAbsolutePath();
261261
}

0 commit comments

Comments
 (0)