Skip to content

Commit

Permalink
added a bit more analysis data being shown (minimum and database count)
Browse files Browse the repository at this point in the history
  • Loading branch information
BuildTools committed Nov 22, 2019
1 parent 9e8fcb2 commit b195fe8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Binary file modified bin/main/Main.class
Binary file not shown.
9 changes: 7 additions & 2 deletions src/main/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,19 @@ public static void filterData(boolean filterCT, String CT, boolean matchCaseCT,
long sum_sold = filterStream(data.stream(), filterCT, CT, matchCaseCT, filterCTL, CTL, matchCaseCTL, true, 0,
filterTT, TT, true, Math.max(1, HB)).mapToLong(a -> a.getHighest_bid_amount() / a.getItem_count())
.sum();
consoleOut("Buy Price\n");
consoleOut("Buy Price [analyzed " + count_buyable + " bidable auctions]\n");
if (count_buyable > 0) {
printCheapest(5, filterCT, CT, matchCaseCT, filterCTL, CTL, matchCaseCTL, filterSL, SL, filterTT, TT,
filterHB, HB);
} else
consoleOut("No results!\n");
consoleOut("Sell Price\n");
consoleOut("Sell Price [analyzed " + count_sold + " sold auctions]\n");
if (count_sold > 0) {
consoleOut("Minimum: "
+ (filterStream(data.stream(), filterCT, CT, matchCaseCT, filterCTL, CTL, matchCaseCTL, true, 0,
filterTT, TT, true, Math.max(1, HB))
.mapToLong(a -> a.getHighest_bid_amount() / a.getItem_count()).min().getAsLong())
+ " coins\n");
consoleOut("Average: " + (sum_sold / count_sold) + " coins\n");
consoleOut("Maximum: "
+ (filterStream(data.stream(), filterCT, CT, matchCaseCT, filterCTL, CTL, matchCaseCTL, true, 0,
Expand Down

0 comments on commit b195fe8

Please sign in to comment.