Examples of averagePingTime()


Examples of freenet.node.SeedServerTestPeerNode.averagePingTime()

  long deadline = System.currentTimeMillis() + MINUTES.toMillis(2);
  while(System.currentTimeMillis() < deadline) {
    int countConnectedSeednodes = 0;
    for(SeedServerPeerNode seednode : node.peers.getConnectedSeedServerPeersVector(null)) {
      try {
        double pingTime = seednode.averagePingTime();
        int uptime = seednode.getUptime();
        long timeDelta = seednode.getClockDelta();
        if(seednode.isRealConnection())
          continue;
        countConnectedSeednodes++;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.