some refactoring

This commit is contained in:
Manuel Simon Hirsig
2015-09-29 01:56:13 +02:00
parent b52db0eb6b
commit 2b6516c534
2 changed files with 7 additions and 6 deletions
+2 -1
View File
@@ -31,6 +31,7 @@ end
function Aux.scan.on_update()
if page_state then
if page_state.index <= page_state.count and current_job.on_read_auction then
current_job.on_read_auction(page_state.index)
end
@@ -45,7 +46,7 @@ function Aux.scan.on_update()
end
if page_state then
page_state.index = page_state.index + 1
page_state.index = min(page_state.index + 1, page_state.count)
end
elseif current_job and GetTime() - last_query_request > 0.5 then