[Groonga-commit] groonga/groonga [master] [query-log][analyzer] use %f instead of %g.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 5月 31日 (火) 14:27:12 JST


Kouhei Sutou	2011-05-31 05:27:12 +0000 (Tue, 31 May 2011)

  New Revision: 391e22e379486e71a63d04863ea9b4b3975db76f

  Log:
    [query-log][analyzer] use %f instead of %g.

  Modified files:
    tools/groonga-analyze-query-log.rb

  Modified: tools/groonga-analyze-query-log.rb (+5 -7)
===================================================================
--- tools/groonga-analyze-query-log.rb    2011-05-31 03:11:33 +0000 (c7c6c9a)
+++ tools/groonga-analyze-query-log.rb    2011-05-31 05:27:12 +0000 (d2502f6)
@@ -97,11 +97,11 @@ class Statistic
   end
 
   def label
-    "[%s-%s (%g)](%d): %s" % [format_time(start_time),
-                              format_time(end_time),
-                              nano_seconds_to_seconds(elapsed),
-                              return_code,
-                              raw_command]
+    "[%s-%s (%8.8f)](%d): %s" % [format_time(start_time),
+                                 format_time(end_time),
+                                 nano_seconds_to_seconds(elapsed),
+                                 return_code,
+                                 raw_command]
   end
 
   def each_trace_report
@@ -134,8 +134,6 @@ class Statistic
     case label
     when /\Afilter\(/
       "#{label} <#{@select_command.filters[i]}>"
-    when /\Aselect\(/
-      label
     when /\Asort\(/
       "#{label} <#{@select_command.sortby}>"
     when /\Aoutput\(/




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