[edit: moving the second enhancement request to a separate JIRA, SPRG-8]
RockSlice asked me to post a link to my forum item here:
http://forums.norganna.org/discussion/7641/changes-to-aucutilscanprogressscanprogresslua-for-consideration/
The text of the items is:
Hi, This may be presumptious of me, but I have a small change I would like to see in ScanProgress.lua. OK, maybe two.
The first is I like to see the % complete when scanning, and the second is that it bugs me to see 1 Sec. left when the scan is done.
So, I made a couple of changes to see if I could get them to work. To wit:
[edit: first fix moved to SPRG-8]
And starting at line 144:
local auctionsScannedPerSecond = scannedAuctions / secondsElapsed
local secondsToScanCompletion = SecondsToTime(auctionsToScan / auctionsScannedPerSecond)
if (currentPage+1 == totalPages) then
secondsToScanCompletion = "Done"
end
BrowseNoResultsText:SetText(
private.scanProgressFormat:format(
"Scanning auctions.",
currentPage + 1,
totalPages,
((currentPage+1)/totalPages)*100,
auctionsScannedPerSecond,
scannedAuctions,
secondsToScanCompletion,
SecondsToTime(secondsElapsed)
)
)
Thanks for all of your great work on this fantastic addon. I use it constantly and am learning to write my own Addons. Your code makes a great learning tool also!!
-Gregity