[Groonga-commit] groonga/groonga [master] report also timestamp.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 1月 10日 (月) 19:41:49 JST


Kouhei Sutou	2011-01-10 10:41:49 +0000 (Mon, 10 Jan 2011)

  New Revision: 62e50a4ccf32fdc906ede1d90f4937f172940f54

  Log:
    report also timestamp.

  Modified files:
    tools/groonga-check-memory-leak.rb

  Modified: tools/groonga-check-memory-leak.rb (+2 -2)
===================================================================
--- tools/groonga-check-memory-leak.rb    2011-01-10 10:23:00 +0000 (97d1660)
+++ tools/groonga-check-memory-leak.rb    2011-01-10 10:41:49 +0000 (0483354)
@@ -8,7 +8,7 @@ end
 require 'ostruct'
 require 'optparse'
 require 'tempfile'
-require 'stringio'
+require 'time'
 
 options = OpenStruct.new
 options.groonga = "groonga"
@@ -46,7 +46,7 @@ command_files.each do |path|
     file.each_line do |command|
       if options.report_progress
         i += 1
-        puts("#{i} commands done.") if (i % 1000).zero?
+        puts("#{Time.now.iso8601}: #{i} commands done.") if (i % 1000).zero?
       end
       command = command.chomp
       base_name = File.basename($0, ".*")




Groonga-commit メーリングリストの案内
Back to archive index