From 87f367a7dbb9c77946ff86e1e0ef7479c394ee61 Mon Sep 17 00:00:00 2001 From: Jordi Sanfeliu Date: Fri, 3 Oct 2014 09:39:47 +0200 Subject: [PATCH] small cosmetic change to increase the visibility of the lines in the graph --- Changes | 1 + lib/mysql.pm | 34 +++++++++++++++++----------------- 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/Changes b/Changes index 00f248a..981a38c 100644 --- a/Changes +++ b/Changes @@ -25,6 +25,7 @@ correctly the opened connections either in IPv4 and IPv6. [#66] - Fixed a missing CDEF that prevented creating the 'process05z.png' graph when the option 'show_gaps' was enabled. [#70] +- Small cosmetic changes. 3.6.0 - 20-Aug-2014 diff --git a/lib/mysql.pm b/lib/mysql.pm index 114445d..a6fbeb8 100644 --- a/lib/mysql.pm +++ b/lib/mysql.pm @@ -638,52 +638,52 @@ sub mysql_cgi { undef(@tmp); undef(@tmpz); undef(@CDEF); - push(@tmp, "LINE1:com_select#FFA500:Select"); + push(@tmp, "LINE2:com_select#FFA500:Select"); push(@tmp, "GPRINT:com_select:LAST: Cur\\: %6.1lf"); push(@tmp, "GPRINT:com_select:AVERAGE: Avg\\: %6.1lf"); push(@tmp, "GPRINT:com_select:MIN: Min\\: %6.1lf"); push(@tmp, "GPRINT:com_select:MAX: Max\\: %6.1lf\\n"); - push(@tmp, "LINE1:com_commit#EEEE44:Commit"); + push(@tmp, "LINE2:com_commit#EEEE44:Commit"); push(@tmp, "GPRINT:com_commit:LAST: Cur\\: %6.1lf"); push(@tmp, "GPRINT:com_commit:AVERAGE: Avg\\: %6.1lf"); push(@tmp, "GPRINT:com_commit:MIN: Min\\: %6.1lf"); push(@tmp, "GPRINT:com_commit:MAX: Max\\: %6.1lf\\n"); - push(@tmp, "LINE1:com_delete#EE4444:Delete"); + push(@tmp, "LINE2:com_delete#EE4444:Delete"); push(@tmp, "GPRINT:com_delete:LAST: Cur\\: %6.1lf"); push(@tmp, "GPRINT:com_delete:AVERAGE: Avg\\: %6.1lf"); push(@tmp, "GPRINT:com_delete:MIN: Min\\: %6.1lf"); push(@tmp, "GPRINT:com_delete:MAX: Max\\: %6.1lf\\n"); - push(@tmp, "LINE1:com_insert#44EE44:Insert"); + push(@tmp, "LINE2:com_insert#44EE44:Insert"); push(@tmp, "GPRINT:com_insert:LAST: Cur\\: %6.1lf"); push(@tmp, "GPRINT:com_insert:AVERAGE: Avg\\: %6.1lf"); push(@tmp, "GPRINT:com_insert:MIN: Min\\: %6.1lf"); push(@tmp, "GPRINT:com_insert:MAX: Max\\: %6.1lf\\n"); - push(@tmp, "LINE1:com_insert_s#448844:Insert Select"); + push(@tmp, "LINE2:com_insert_s#448844:Insert Select"); push(@tmp, "GPRINT:com_insert_s:LAST: Cur\\: %6.1lf"); push(@tmp, "GPRINT:com_insert_s:AVERAGE: Avg\\: %6.1lf"); push(@tmp, "GPRINT:com_insert_s:MIN: Min\\: %6.1lf"); push(@tmp, "GPRINT:com_insert_s:MAX: Max\\: %6.1lf\\n"); - push(@tmp, "LINE1:com_update#EE44EE:Update"); + push(@tmp, "LINE2:com_update#EE44EE:Update"); push(@tmp, "GPRINT:com_update:LAST: Cur\\: %6.1lf"); push(@tmp, "GPRINT:com_update:AVERAGE: Avg\\: %6.1lf"); push(@tmp, "GPRINT:com_update:MIN: Min\\: %6.1lf"); push(@tmp, "GPRINT:com_update:MAX: Max\\: %6.1lf\\n"); - push(@tmp, "LINE1:com_replace#44EEEE:Replace"); + push(@tmp, "LINE2:com_replace#44EEEE:Replace"); push(@tmp, "GPRINT:com_replace:LAST: Cur\\: %6.1lf"); push(@tmp, "GPRINT:com_replace:AVERAGE: Avg\\: %6.1lf"); push(@tmp, "GPRINT:com_replace:MIN: Min\\: %6.1lf"); push(@tmp, "GPRINT:com_replace:MAX: Max\\: %6.1lf\\n"); - push(@tmp, "LINE1:com_replace_s#4444EE:Replace Select"); + push(@tmp, "LINE2:com_replace_s#4444EE:Replace Select"); push(@tmp, "GPRINT:com_replace_s:LAST: Cur\\: %6.1lf"); push(@tmp, "GPRINT:com_replace_s:AVERAGE: Avg\\: %6.1lf"); push(@tmp, "GPRINT:com_replace_s:MIN: Min\\: %6.1lf"); push(@tmp, "GPRINT:com_replace_s:MAX: Max\\: %6.1lf\\n"); - push(@tmp, "LINE1:com_rollback#444444:Rollback"); + push(@tmp, "LINE2:com_rollback#444444:Rollback"); push(@tmp, "GPRINT:com_rollback:LAST: Cur\\: %6.1lf"); push(@tmp, "GPRINT:com_rollback:AVERAGE: Avg\\: %6.1lf"); push(@tmp, "GPRINT:com_rollback:MIN: Min\\: %6.1lf"); push(@tmp, "GPRINT:com_rollback:MAX: Max\\: %6.1lf\\n"); - push(@tmp, "LINE1:com_stmtex#888888:Prep.Stmt.Exec"); + push(@tmp, "LINE2:com_stmtex#888888:Prep.Stmt.Exec"); push(@tmp, "GPRINT:com_stmtex:LAST: Cur\\: %6.1lf"); push(@tmp, "GPRINT:com_stmtex:AVERAGE: Avg\\: %6.1lf"); push(@tmp, "GPRINT:com_stmtex:MIN: Min\\: %6.1lf"); @@ -783,37 +783,37 @@ sub mysql_cgi { undef(@tmp); undef(@tmpz); undef(@CDEF); - push(@tmp, "LINE1:tcache_hit_r#FFA500:Thread Cache Hit Rate"); + push(@tmp, "LINE2:tcache_hit_r#FFA500:Thread Cache Hit Rate"); push(@tmp, "GPRINT:tcache_hit_r:LAST: Cur\\: %4.1lf%%"); push(@tmp, "GPRINT:tcache_hit_r:AVERAGE: Avg\\: %4.1lf%%"); push(@tmp, "GPRINT:tcache_hit_r:MIN: Min\\: %4.1lf%%"); push(@tmp, "GPRINT:tcache_hit_r:MAX: Max\\: %4.1lf%%\\n"); - push(@tmp, "LINE1:qcache_hitr#4444EE:Query Cache Hit Rate"); + push(@tmp, "LINE2:qcache_hitr#4444EE:Query Cache Hit Rate"); push(@tmp, "GPRINT:qcache_hitr:LAST: Cur\\: %4.1lf%%"); push(@tmp, "GPRINT:qcache_hitr:AVERAGE: Avg\\: %4.1lf%%"); push(@tmp, "GPRINT:qcache_hitr:MIN: Min\\: %4.1lf%%"); push(@tmp, "GPRINT:qcache_hitr:MAX: Max\\: %4.1lf%%\\n"); - push(@tmp, "LINE1:qcache_usage#44EEEE:Query Cache Usage"); + push(@tmp, "LINE2:qcache_usage#44EEEE:Query Cache Usage"); push(@tmp, "GPRINT:qcache_usage:LAST: Cur\\: %4.1lf%%"); push(@tmp, "GPRINT:qcache_usage:AVERAGE: Avg\\: %4.1lf%%"); push(@tmp, "GPRINT:qcache_usage:MIN: Min\\: %4.1lf%%"); push(@tmp, "GPRINT:qcache_usage:MAX: Max\\: %4.1lf%%\\n"); - push(@tmp, "LINE1:conns_u#44EE44:Connections Usage"); + push(@tmp, "LINE2:conns_u#44EE44:Connections Usage"); push(@tmp, "GPRINT:conns_u:LAST: Cur\\: %4.1lf%%"); push(@tmp, "GPRINT:conns_u:AVERAGE: Avg\\: %4.1lf%%"); push(@tmp, "GPRINT:conns_u:MIN: Min\\: %4.1lf%%"); push(@tmp, "GPRINT:conns_u:MAX: Max\\: %4.1lf%%\\n"); - push(@tmp, "LINE1:key_buf_u#EE4444:Key Buffer Usage"); + push(@tmp, "LINE2:key_buf_u#EE4444:Key Buffer Usage"); push(@tmp, "GPRINT:key_buf_u:LAST: Cur\\: %4.1lf%%"); push(@tmp, "GPRINT:key_buf_u:AVERAGE: Avg\\: %4.1lf%%"); push(@tmp, "GPRINT:key_buf_u:MIN: Min\\: %4.1lf%%"); push(@tmp, "GPRINT:key_buf_u:MAX: Max\\: %4.1lf%%\\n"); - push(@tmp, "LINE1:innodb_buf_u#EE44EE:InnoDB Buffer P. Usage"); + push(@tmp, "LINE2:innodb_buf_u#EE44EE:InnoDB Buffer P. Usage"); push(@tmp, "GPRINT:innodb_buf_u:LAST: Cur\\: %4.1lf%%"); push(@tmp, "GPRINT:innodb_buf_u:AVERAGE: Avg\\: %4.1lf%%"); push(@tmp, "GPRINT:innodb_buf_u:MIN: Min\\: %4.1lf%%"); push(@tmp, "GPRINT:innodb_buf_u:MAX: Max\\: %4.1lf%%\\n"); - push(@tmp, "LINE1:tmptbltodsk#888888:Temp. Tables to Disk"); + push(@tmp, "LINE2:tmptbltodsk#888888:Temp. Tables to Disk"); push(@tmp, "GPRINT:tmptbltodsk:LAST: Cur\\: %4.1lf%%"); push(@tmp, "GPRINT:tmptbltodsk:AVERAGE: Avg\\: %4.1lf%%"); push(@tmp, "GPRINT:tmptbltodsk:MIN: Min\\: %4.1lf%%");