From 65ec4776db0622baaffff9ccae1591da1ee9bae1 Mon Sep 17 00:00:00 2001 From: Jordi Sanfeliu Date: Wed, 16 Jan 2013 15:18:13 +0100 Subject: [PATCH] changed the 'mysql' graph 'Table Saturation ...' to be represented per minutes --- lib/mysql.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/mysql.pm b/lib/mysql.pm index 1cfd445..68799d0 100644 --- a/lib/mysql.pm +++ b/lib/mysql.pm @@ -271,7 +271,7 @@ sub mysql_update { $str = $n . "opened_tables"; $opened_tables = $value - ($config->{mysql_hist}->{$str} || 0); $opened_tables = 0 unless $opened_tables != $value; - $opened_tables /= 60; +# $opened_tables /= 60; $config->{mysql_hist}->{$str} = $value; } if($name eq "Qcache_free_memory") { @@ -301,7 +301,7 @@ sub mysql_update { $str = $n . "table_locks_waited"; $table_locks_waited = $value - ($config->{mysql_hist}->{$str} || 0); $table_locks_waited = 0 unless $table_locks_waited != $value; - $table_locks_waited /= 60; +# $table_locks_waited /= 60; $config->{mysql_hist}->{$str} = $value; } if($name eq "Threads_created") { @@ -873,7 +873,7 @@ sub mysql_cgi { "--title=$config->{graphs}->{_mysql3} ($tf->{nwhen}$tf->{twhen})", "--start=-$tf->{nwhen}$tf->{twhen}", "--imgformat=PNG", - "--vertical-label=Open & Locks/s", + "--vertical-label=Open & Locks/min", "--width=$width", "--height=$height", @riglim, @@ -892,7 +892,7 @@ sub mysql_cgi { "--title=$config->{graphs}->{_mysql3} ($tf->{nwhen}$tf->{twhen})", "--start=-$tf->{nwhen}$tf->{twhen}", "--imgformat=PNG", - "--vertical-label=Open & Locks/s", + "--vertical-label=Open & Locks/min", "--width=$width", "--height=$height", @riglim,