dont require pdh.dll on NT 4.0
This commit is contained in:
parent
646fc226ea
commit
6819b18af6
@ -156,15 +156,19 @@ public class Sigar implements SigarProxy {
|
||||
}
|
||||
|
||||
private static void loadLibrary() throws SigarException {
|
||||
try {
|
||||
if (SigarLoader.IS_WIN32 &&
|
||||
System.getProperty("os.version").equals("4.0"))
|
||||
{
|
||||
if (SigarLoader.IS_WIN32 &&
|
||||
System.getProperty("os.version").equals("4.0"))
|
||||
{
|
||||
try {
|
||||
//NT 4.0 only
|
||||
String lib =
|
||||
loader.findJarPath("pdh.dll") +
|
||||
File.separator + "pdh.dll";
|
||||
loader.systemLoad(lib);
|
||||
}
|
||||
} catch (Exception e) {}
|
||||
}
|
||||
|
||||
try {
|
||||
loader.load();
|
||||
} catch (ArchNotSupportedException e) {
|
||||
throw new SigarException(e.getMessage());
|
||||
|
Loading…
Reference in New Issue
Block a user