handle non-proxied Sigar
This commit is contained in:
1 parent
ba98d0cffe
commit
26139ee50f
1 file changed
+6
-1
@@ -91,7 +91,12 @@ public class SigarProxyCache
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static Sigar getSigar(Object proxy) {
|
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) {
|
private String getDebugArgs(Object[] args, Object argKey) {
|
||||||
|
|||||||
Reference in new issue
Block a user