[Groonga-commit] droonga/http-benchmark at 26cc1b3 [master] Join the array to a string before concating

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Oct 9 15:44:39 JST 2013


YUKI Hiroshi	2013-10-09 15:44:39 +0900 (Wed, 09 Oct 2013)

  New Revision: 26cc1b3383dcbfcd60a446044f19ea6f0990700a
  https://github.com/droonga/http-benchmark/commit/26cc1b3383dcbfcd60a446044f19ea6f0990700a

  Message:
    Join the array to a string before concating

  Modified files:
    lib/droonga/http-benchmark/runner.rb

  Modified: lib/droonga/http-benchmark/runner.rb (+2 -2)
===================================================================
--- lib/droonga/http-benchmark/runner.rb    2013-10-09 15:43:28 +0900 (217ea74)
+++ lib/droonga/http-benchmark/runner.rb    2013-10-09 15:44:39 +0900 (838adb7)
@@ -214,8 +214,8 @@ module Droonga
             "(#{queries_per_second} queries per second)\n" +
           "Status:\n" +
           sorted_response_statuses.collect do |status, percentage|
-            "  #{status}: #{percentage} %\n"
-          end +
+            "  #{status}: #{percentage} %"
+          end.join("\n") + "\n" +
           "Elapsed time:\n" +
           "  min:     #{min_elapsed_time} sec\n" +
           "  max:     #{max_elapsed_time} sec\n" +
-------------- next part --------------
HTML����������������������������...
Download 



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