some renaming

This commit is contained in:
Manuel Simon Hirsig
2016-02-27 11:33:35 +01:00
parent d4c19e7a68
commit 6b8846b70d
5 changed files with 13 additions and 13 deletions
+4 -4
View File
@@ -197,12 +197,12 @@ local methods = {
GetRecordPercent = function(self, record)
if not record then return end
-- cache the market value on the record
record.market_value = record.market_value or Aux.history.value(record.item_key) or 0
if record.market_value > 0 then
record.historical_value = record.market_value or Aux.history.value(record.item_key) or 0
if record.historical_value > 0 then
if record.unit_buyout_price > 0 then
return Aux.round(100 * record.unit_buyout_price / record.market_value, 1)
return Aux.round(100 * record.unit_buyout_price / record.historical_value, 1)
end
return nil, Aux.round(100 * record.unit_bid_price / record.market_value, 1)
return nil, Aux.round(100 * record.unit_bid_price / record.historical_value, 1)
end
end,