diff options
Diffstat (limited to 'sources/protocols/implementations/BerkelyTimeProtocol.java')
| -rw-r--r-- | sources/protocols/implementations/BerkelyTimeProtocol.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/protocols/implementations/BerkelyTimeProtocol.java b/sources/protocols/implementations/BerkelyTimeProtocol.java index d1a403f..ded3d1b 100644 --- a/sources/protocols/implementations/BerkelyTimeProtocol.java +++ b/sources/protocols/implementations/BerkelyTimeProtocol.java @@ -29,7 +29,8 @@ public class BerkelyTimeProtocol extends VSProtocol { private HashMap<Integer,Long> realTimesRTT = new HashMap<Integer,Long>(); /** Contains all process IDs of processes which want to justify their time */ - private ArrayList<Integer> peers; + private ArrayList<Integer> peers = new ArrayList<Integer>(); + /** Time the request/response has started */ private long requestTime; @@ -67,7 +68,6 @@ public class BerkelyTimeProtocol extends VSProtocol { * @see protocols.VSProtocol#onClientStart() */ protected void onClientStart() { - peers = new ArrayList<Integer>(); peers.addAll(getVector("processPIDs")); requestTime = process.getTime(); VSMessage message = new VSMessage(); |
