totalHopsTaken += hopsTaken;
successes++;
avg.report(1.0);
avg2.report(1.0);
double ratio = (double) successes / ((double) (failures + successes));
System.err.println("Routed ping " + pings + " success: " + hopsTaken + ' ' + randomNode.getDarknetPortNumber() + " to " + randomNode2.getDarknetPortNumber() + " (long:" + ratio + ", short:" + avg.currentValue() + ", vague:" + avg2.currentValue() + ')');
}
} catch(Throwable t) {
Logger.error(RealNodeRoutingTest.class, "Caught " + t, t);
}
}