diff --git a/bindings/java/src/net/hyperic/sigar/NetPortMap.java b/bindings/java/src/net/hyperic/sigar/NetPortMap.java index dcb09ca9..3aecaafa 100644 --- a/bindings/java/src/net/hyperic/sigar/NetPortMap.java +++ b/bindings/java/src/net/hyperic/sigar/NetPortMap.java @@ -13,7 +13,8 @@ import java.util.StringTokenizer; public class NetPortMap { private Sigar sigar; - private Map clients; + private Map inbound; + private Map outbound; private int[] states; private static final String SERVICE_FILE; @@ -130,7 +131,8 @@ public class NetPortMap { } public void stat(int flags) throws SigarException { - this.clients = new HashMap(); + this.inbound = new HashMap(); + this.outbound = new HashMap(); this.states = new int[NetFlags.TCP_UNKNOWN]; for (int i=0; i