ge: fix computing bought/sold amount

Use the total spent price instead of the delta spent price, as it is
being divided by the total quantity
This commit is contained in:
Adam
2020-06-06 00:01:08 -04:00
parent dfce3bd7fc
commit a1122ba141
4 changed files with 7 additions and 4 deletions

View File

@@ -94,7 +94,7 @@ public class GrandExchangeController
trade.setQty(grandExchangeTrade.getQty());
trade.setDqty(grandExchangeTrade.getDqty());
trade.setTotal(grandExchangeTrade.getTotal());
trade.setSpent(grandExchangeTrade.getSpent());
trade.setSpent(grandExchangeTrade.getDspent());
trade.setOffer(grandExchangeTrade.getOffer());
trade.setSlot(grandExchangeTrade.getSlot());
trade.setTime((int) (System.currentTimeMillis() / 1000L));