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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user