copied from
SPRG-3:
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:
Line 55:
private.scanProgressFormat = "Auctioneer Advanced: %s\nScanning page %d of %d (%.1f%% complete)\n\nAuctions per second: %.2f\nAuctions scanned thus far: %d\n\nEstimated time left: %s\nElapsed scan time: %s"
[second item removed, it remains in SPRG-3]
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
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)
)
)