-/* Copyright (c) 2006-2014, 2016. The SimGrid Team.
+/* Copyright (c) 2006-2014, 2016-2017. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
public class Connection {
protected int id;
- protected char bitfield[];
+ protected char[] bitfield;
protected String mailbox;
// Indicates if we are interested in something this peer has
protected boolean amInterested = false;
// Add a new value to the peer speed average
public void addSpeedValue(double speed) {
peerSpeed = peerSpeed * 0.55 + speed * 0.45;
- // peerSpeed = (peerSpeed * messagesCount + speed) / (++messagesCount);
}
@Override