need to load pdh.dll before sigar.dll
This commit is contained in:
1 parent
23c0f55080
commit
84ca523e7b
1 file changed
+1
-1
@@ -59,7 +59,6 @@ public class Sigar implements SigarProxy {
|
||||
|
||||
private static void load() throws SigarException {
|
||||
try {
|
||||
loader.load();
|
||||
if (SigarLoader.IS_WIN32 &&
|
||||
System.getProperty("os.version").equals("4.0"))
|
||||
{
|
||||
@@ -68,6 +67,7 @@ public class Sigar implements SigarProxy {
|
||||
File.separator + "pdh.dll";
|
||||
loader.systemLoad(lib);
|
||||
}
|
||||
loader.load();
|
||||
} catch (ArchNotSupportedException e) {
|
||||
throw new SigarException(e.getMessage());
|
||||
} catch (ArchLoaderException e) {
|
||||
|
||||
Reference in new issue
Block a user