changeset 59:962cafb5915d v2.08

Fixed CleanupDatabase range.
author Aaron@MATT-DAMON
date Sun, 21 Aug 2011 12:33:57 -0500
parents 63dcee910f5e
children a1bc71f4fbbb
files core.lua
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/core.lua	Wed Jan 26 10:23:36 2011 -0600
+++ b/core.lua	Sun Aug 21 12:33:57 2011 -0500
@@ -152,7 +152,8 @@
     GatherMate:GetModule("Config"):RegisterModule("RecipeProfit", options)
     GatherMate:RegisterDBType("RecipeProfit", db.storage)
     GatherMate.db.profile.show["RecipeProfit"] = GatherMate.db.profile.show["RecipeProfit"] or "always"
-    
+	GatherMate.db.profile.cleanupRange["RecipeProfit"] = 0.0;
+		
     set_node_constants()
     inject_options()
     
@@ -174,7 +175,7 @@
     local oldFunction2 = GatherMate.OnProfileChanged
     
     GatherMate.OnProfileChanged = function(lself, ...)
-        lself.db.profile.cleanupRange["RecipeProfit"] = lself.db.profile.cleanupRange["RecipeProfit"] or 15
+        lself.db.profile.cleanupRange["RecipeProfit"] = lself.db.profile.cleanupRange["RecipeProfit"] or 0.0;
         lself.db.profile.show["RecipeProfit"] = lself.db.profile.show["RecipeProfit"] == "never" and "never" or "always";
         oldFunction2(lself, ...)
     end