X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Fdebugger.rb;h=fe000324e8383118dd898d54588e05f3172321ba;hb=eea3e8b5cf1bd6c16dbae2bfa62e271bca4ac9a6;hp=2851d6a9ffd97aa1efbd78a8b847540e95534b78;hpb=d29df50ddaf32536b105decefb135a0b86ee937f;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/data/rbot/plugins/debugger.rb b/data/rbot/plugins/debugger.rb index 2851d6a9..fe000324 100644 --- a/data/rbot/plugins/debugger.rb +++ b/data/rbot/plugins/debugger.rb @@ -1,7 +1,11 @@ -# Debugging/profiling for rbot +#-- vim:sw=2:et +#++ # -# (c) 2006 Giuseppe Bilotta -# Licensed under GPL V2. +# :title: Debugging/profiling for rbot +# +# Author:: Giuseppe "Oblomov" Bilotta +# Copyright:: (C) 2006-2007 Giuseppe Bilotta +# License:: GPL v2 class DebugPlugin < Plugin BotConfig.register BotConfigIntegerValue.new('debug.interval', @@ -44,7 +48,7 @@ class DebugPlugin < Plugin end @delta.clear - (@curr.keys + @delta.keys).uniq.each do |k,v| + (@curr.keys + @prev.keys).uniq.each do |k,v| @delta[k] = @curr[k]-@prev[k] end