diff --git a/metrics-os/src/main/java/com/alibaba/metrics/os/utils/SystemInfoUtils.java b/metrics-os/src/main/java/com/alibaba/metrics/os/utils/SystemInfoUtils.java index 50aac3f..10ad6f3 100644 --- a/metrics-os/src/main/java/com/alibaba/metrics/os/utils/SystemInfoUtils.java +++ b/metrics-os/src/main/java/com/alibaba/metrics/os/utils/SystemInfoUtils.java @@ -92,7 +92,7 @@ public static void loadLib() throws IOException{ if (path.indexOf("!") > 0) { path = path.substring(0, path.substring(0, path.indexOf("!")).lastIndexOf("/")) + resource; } - if (path.indexOf(":") > 0 && !osName.contains("Windows")) { + if (path.indexOf(":") > 0) { path = path.substring(path.indexOf(":") + 1); }