From b8224beb853683a3359a4759c519a0b5a3a7e6f8 Mon Sep 17 00:00:00 2001 From: Jean-Marie Renouard Date: Wed, 26 Sep 2018 07:25:58 +0000 Subject: [PATCH] bug fix in calcualation of wsrep_slave_threads value #305 --- mysqltuner.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mysqltuner.pl b/mysqltuner.pl index cdb3ba0..8bf1bc5 100755 --- a/mysqltuner.pl +++ b/mysqltuner.pl @@ -5182,12 +5182,12 @@ having sum(if(c.column_key in ('PRI','UNI'), 1,0)) = 0" infoprint "CPU core detected : ". (cpu_cores); infoprint "wsrep_slave_threads: ". get_wsrep_option('wsrep_slave_threads'); - if ( get_wsrep_option('wsrep_slave_threads') > (cpu_cores) * 4 - or get_wsrep_option('wsrep_slave_threads') < (cpu_cores) * 2 ) + if ( get_wsrep_option('wsrep_slave_threads') > ((cpu_cores) * 4) + or get_wsrep_option('wsrep_slave_threads') < ((cpu_cores) * 2) ) { badprint "wsrep_slave_threads is not equal to 2, 3 or 4 times number of CPU(s)"; - push @adjvars, "wsrep_slave_threads = ".(cpu_cores * 4); + push @adjvars, "wsrep_slave_threads = ".((cpu_cores) * 4); } else { goodprint