Archived
0

fix compute score bug

This commit is contained in:
iMoHax
2015-06-19 15:57:46 +03:00
parent eac0627076
commit 777dbcbf7b

View File

@@ -28,7 +28,7 @@ public class Scorer {
this.profile = profile;
sellOffers = new HashMap<>(100, 0.9f);
buyOffers = new HashMap<>(100, 0.9f);
market.getItems().parallelStream().forEach(this::fillOffers);
market.getItems().forEach(this::fillOffers);
DoubleSummaryStatistics statProfit = computeProfit();
minProfit = statProfit.getMin() / profile.getShip().getCargo();
avgProfit = statProfit.getAverage() / profile.getShip().getCargo();