small bugfix with stale report

This commit is contained in:
Manuel Simon Hirsig
2015-09-12 01:38:33 +02:00
parent b09ad653c2
commit 42d3a6c27e
+2 -2
View File
@@ -113,6 +113,7 @@ end
-----------------------------------------
function Aux_UpdateRecommendation()
AuxRecommendLastRefreshText:Hide()
if not currentAuctionItemName then
AuxSellRefreshButton:Disable()
@@ -123,8 +124,7 @@ function Aux_UpdateRecommendation()
if selectedAuxEntry then
if not auxSellEntries[currentAuctionItemName].created or GetTime() - auxSellEntries[currentAuctionItemName].created > 1800 then
AuxRecommendLastRefreshText:SetText("STALE DATA") -- data older than half an hour marked as stale
else
AuxRecommendLastRefreshText:SetText("")
AuxRecommendLastRefreshText:Show()
end
local newBuyoutPrice = selectedAuxEntry.itemPrice * currentAuctionItemStackSize