[Groonga-commit] groonga/groonga-query-log at ac46854 [master] Unindent

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Sep 20 12:24:57 JST 2013


Kouhei Sutou	2013-09-20 12:24:57 +0900 (Fri, 20 Sep 2013)

  New Revision: ac468541a951ebaff084a9a471408b7857e5a065
  https://github.com/groonga/groonga-query-log/commit/ac468541a951ebaff084a9a471408b7857e5a065

  Message:
    Unindent

  Modified files:
    lib/groonga/query-log/memory-leak-detector.rb

  Modified: lib/groonga/query-log/memory-leak-detector.rb (+18 -18)
===================================================================
--- lib/groonga/query-log/memory-leak-detector.rb    2013-09-20 12:24:39 +0900 (5e7990e)
+++ lib/groonga/query-log/memory-leak-detector.rb    2013-09-20 12:24:57 +0900 (517b58d)
@@ -51,24 +51,24 @@ module Groonga
       end
 
       def check_command(client, command)
-            previous_memory_usage = nil
-            @options.n_tries.times do |i|
-              client.execute(command)
-              previous_memory_usage = current_memory_usage
-              current_memory_usage = memory_usage
-              next if previous_memory_usage.nil?
-              if previous_memory_usage != current_memory_usage
-                max_n_digits = [
-                  compute_n_digits(previous_memory_usage),
-                  compute_n_digits(current_memory_usage),
-                ].max
-                puts("detect a memory leak:")
-                puts("Nth try: #{i}")
-                puts("previous: %*d" % [max_n_digits, previous_memory_usage])
-                puts(" current: %*d" % [max_n_digits, current_memory_usage])
-                puts(command.original_source)
-              end
-            end
+        previous_memory_usage = nil
+        @options.n_tries.times do |i|
+          client.execute(command)
+          previous_memory_usage = current_memory_usage
+          current_memory_usage = memory_usage
+          next if previous_memory_usage.nil?
+          if previous_memory_usage != current_memory_usage
+            max_n_digits = [
+              compute_n_digits(previous_memory_usage),
+              compute_n_digits(current_memory_usage),
+            ].max
+            puts("detect a memory leak:")
+            puts("Nth try: #{i}")
+            puts("previous: %*d" % [max_n_digits, previous_memory_usage])
+            puts(" current: %*d" % [max_n_digits, current_memory_usage])
+            puts(command.original_source)
+          end
+        end
       end
 
       def memory_usage
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index