[Groonga-commit] groonga/groonga [master] make total value optional.

Back to archive index

null+****@clear***** null+****@clear*****
2010年 7月 10日 (土) 09:49:23 JST


Kouhei Sutou	2010-07-10 00:49:23 +0000 (Sat, 10 Jul 2010)

  New Revision: 55962fdd050abf30946e32ef36f513fe0b94972f

  Log:
    make total value optional.

  Modified files:
    data/munin/groonga_disk

  Modified: data/munin/groonga_disk (+5 -1)
===================================================================
--- data/munin/groonga_disk    2010-07-10 00:46:29 +0000 (39e628c)
+++ data/munin/groonga_disk    2010-07-10 00:49:23 +0000 (95b6774)
@@ -11,6 +11,7 @@ label = ENV["label"]
 @groonga = ENV["groonga"] || "groonga"
 @du = ENV["du"] || "du"
 @path = ENV["path"]
+ @ show_total = (ENV["show_total"] == "yes")
 
 command = ARGV.shift
 
@@ -100,7 +101,10 @@ graph_title #{title}
 graph_vlabel Bytes
 graph_category groonga
 graph_info disk usage in groonga tables and columns
-graph_total Total
+EOF
+  puts "graph_total Total" if @show_total
+
+  puts <<EOF
 
 database.label Database
 database.type GAUGE




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