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