scanning performance improvement

This commit is contained in:
Manuel Simon Hirsig
2016-02-24 08:56:13 +01:00
parent b552180e20
commit 2d78743207
2 changed files with 6 additions and 2 deletions
+1
View File
@@ -778,6 +778,7 @@ function private.refresh_entries()
private.status_bar:set_text('Scanning auctions...')
Aux.scan.start{
no_wait_owner = true,
queries = { query },
on_page_loaded = function(page, total_pages)
private.status_bar:update_status(100 * (page + 1) / total_pages, 0) -- TODO
+5 -2
View File
@@ -80,16 +80,19 @@ function wait_for_results(k)
last_update = GetTime()
end)
listener:start()
Aux.control.as_soon_as(function() return last_update and GetTime() - last_update > 3 or owner_data_complete end, function()
Aux.control.as_soon_as(function() return last_update and GetTime() - last_update > 5 or owner_data_complete end, function()
listener:stop()
ok = true
end)
end
return controller().wait(function() return ok end, k)
end
function private.owner_data_complete()
if state.params.no_wait_owner then
return true
end
local count, _ = GetNumAuctionItems(current_query().type)
for i=1,count do
local auction_info = Aux.info.auction(i, current_query().type)