changed unreliability indicator
This commit is contained in:
+2
-2
@@ -71,7 +71,7 @@ function private.extend_tooltip(tooltip, hyperlink, quantity)
|
||||
|
||||
local item_key = (item_id or 0)..':'..(suffix_id or 0)
|
||||
|
||||
local value = Aux.history.value(item_key)
|
||||
local value, unreliable = Aux.history.value(item_key)
|
||||
|
||||
local value_line = 'Value: '
|
||||
|
||||
@@ -79,7 +79,7 @@ function private.extend_tooltip(tooltip, hyperlink, quantity)
|
||||
|
||||
local _, _, data_points = Aux.history.price_data(item_key)
|
||||
-- mark as unreliable if less than 5 data points in the last month
|
||||
if value and (not data_points[5] or data_points[5].time < time() - 60 * 60 * 24 * 30) then
|
||||
if value and unreliable then
|
||||
value_line = value_line..' (?)'
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user