handle non-proxied Sigar

This commit is contained in:
Doug MacEachern 2007-10-23 04:47:19 +00:00
parent ba98d0cffe
commit 26139ee50f
1 changed files with 6 additions and 1 deletions

View File

@ -91,7 +91,12 @@ public class SigarProxyCache
}
public static Sigar getSigar(Object proxy) {
return getHandler(proxy).sigar;
if (proxy.getClass() == Sigar.class) {
return (Sigar)proxy;
}
else {
return getHandler(proxy).sigar;
}
}
private String getDebugArgs(Object[] args, Object argKey) {