[前][次][番号順一覧][スレッド一覧]

ruby-changes:45214

From: nobu <ko1@a...>
Date: Sun, 8 Jan 2017 12:50:36 +0900 (JST)
Subject: [ruby-changes:45214] nobu:r57287 (trunk): driver.rb: out output file when loading [ci skip]

nobu	2017-01-08 12:50:32 +0900 (Sun, 08 Jan 2017)

  New Revision: 57287

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57287

  Log:
    driver.rb: out output file when loading [ci skip]
    
    * benchmark/driver.rb: default output file is not used when
      loading rawdata.

  Modified files:
    trunk/benchmark/driver.rb
Index: benchmark/driver.rb
===================================================================
--- benchmark/driver.rb	(revision 57286)
+++ benchmark/driver.rb	(revision 57287)
@@ -420,7 +420,6 @@ if __FILE__ == $0 https://github.com/ruby/ruby/blob/trunk/benchmark/driver.rb#L420
   }
 
   parser.parse!(ARGV)
-  opt[:output] ||= "bmlog-#{Time.now.strftime('%Y%m%d-%H%M%S')}.#{$$}#{formats[opt[:format]]}"
 
   if input = opt[:rawdata_input]
     b = open(input) {|f|
@@ -428,6 +427,7 @@ if __FILE__ == $0 https://github.com/ruby/ruby/blob/trunk/benchmark/driver.rb#L427
     }
     b.show_results
   else
+    opt[:output] ||= "bmlog-#{Time.now.strftime('%Y%m%d-%H%M%S')}.#{$$}#{formats[opt[:format]]}"
     BenchmarkDriver.benchmark(opt)
   end
 end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]