changeset 108:04ccd12c2a41

Tweak 'fix history' output, disable UIDropDownMenu_CreateFrames fix.
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Mon, 06 Aug 2012 14:57:14 -0400
parents 35b55c6f5551
children ce45011fab4c
files core.lua gui.lua
diffstat 2 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/core.lua	Mon Aug 06 13:14:38 2012 -0400
+++ b/core.lua	Mon Aug 06 14:57:14 2012 -0400
@@ -2888,7 +2888,7 @@
 						when[h] = player.when[h]
 						count[h] = player.count[h]
 					else
-						self:Print("Realm %s, player %s, entry %d:  tag <%s>, id <%s>, time <%s>, count <%s>",
+						self:Print("> Realm %s, player %s, entry %d:  tag <%s>, id <%s>, time <%s>, count <%s>",
 							rname, player.name, i, h, tostring(player.id[h]),
 							tostring(player.when[h]), tostring(player.count[h]))
 						errors = errors + 1
@@ -2909,13 +2909,15 @@
 			if #empties_to_delete > 0 then
 				for _,pk in ipairs(empties_to_delete) do
 					local player = tremove (realm, pk)
-					self:Print("Realm %s, player %s, is empty", rname, player.name)
+					self:Print("> Realm %s, player %s, is empty", rname, player.name)
+					errors = errors + 1
 				end
 				wipe(empties_to_delete)
 			end
 			if #realm == 0 then
 				self.history_all[rname] = nil
-				self:Print("Realm %s is empty", rname)
+				self:Print("> Realm %s is empty", rname)
+				errors = errors + 1
 			end
 			rcount = rcount + 1
 		end
@@ -2923,6 +2925,8 @@
 		if errors > 0 then
 			self:Print("The listed entries have been erased from history.")
 		end
+		self:Print("Finished examining %d realms, %d players, %d history entries.",
+			rcount, pcount, hcount)
 	end
 
 	-- Possibly called during login.  Cleared when no longer needed.
@@ -2984,6 +2988,8 @@
 		end
 		UpdateAddOnMemoryUsage()
 		local after = GetAddOnMemoryUsage(nametag)
+		-- This displayed number is occasionally negative, if the GC happens
+		-- to run during the loops.  How much should we care?
 		self:Print("Pre-scanning history for faster loot handling on %s used %.2f MB of memory across %d entries.",
 			self.history.realm, (after-before)/1024, count)
 		if trouble then
--- a/gui.lua	Mon Aug 06 13:14:38 2012 -0400
+++ b/gui.lua	Mon Aug 06 14:57:14 2012 -0400
@@ -122,7 +122,7 @@
 
 -- Working around this bug:
 -- http://forums.wowace.com/showpost.php?p=295202&postcount=31
-if false then  -- no longer needed?
+if false then  -- XXX no longer needed?
 	local function fix_frame_level (level, ...)
 		for i = 1, select("#", ...) do
 			local button = select(i, ...)