diff --git a/bindings/java/src/net/hyperic/sigar/NetPortMap.java b/bindings/java/src/net/hyperic/sigar/NetPortMap.java index 5f904bd6..9339930d 100644 --- a/bindings/java/src/net/hyperic/sigar/NetPortMap.java +++ b/bindings/java/src/net/hyperic/sigar/NetPortMap.java @@ -7,10 +7,10 @@ import java.util.Map; public class NetPortMap { private Sigar sigar; - private Map inbound; - private Map outbound; - private int[] states; - private int inboundTotal, outboundTotal; + private Map tcpInbound; + private Map tcpOutbound; + private int[] tcpStates; + private int tcpInboundTotal, tcpOutboundTotal; public NetPortMap() { this.sigar = new Sigar(); @@ -36,12 +36,12 @@ public class NetPortMap { } public void stat(int flags) throws SigarException { - this.inbound = new HashMap(); - this.outbound = new HashMap(); - this.inboundTotal = this.outboundTotal = 0; - this.states = new int[NetFlags.TCP_UNKNOWN]; - for (int i=0; i