diff options
| author | Paul Buetow <paul@buetow.org> | 2008-05-26 18:55:29 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2008-05-26 18:55:29 +0000 |
| commit | 05d5e9fd51052e8f63a49a7e9529e7e710ca0e0a (patch) | |
| tree | 501971110d392780fe5553c39321cdc6b7b32552 | |
| parent | 96001873c9ffb6b3ff8866937eb39b8085032705 (diff) | |
cosmetic fix
| -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(); |
