diff --git a/plugins/mysql/js/mysql.js b/plugins/mysql/js/mysql.js index 82c2f34da..127dab366 100755 --- a/plugins/mysql/js/mysql.js +++ b/plugins/mysql/js/mysql.js @@ -89,7 +89,7 @@ function runInfo(){ } // Com_select , Qcache_inserts - var cache_size = ((parseInt(rdata.Qcache_hits) / (parseInt(rdata.Qcache_hits) + parseInt(rdata.Com_select))) * 100).toFixed(2) + '%'; + var cache_size = ((parseInt(rdata.Qcache_hits) / (parseInt(rdata.Qcache_hits) + parseInt(rdata.Qcache_inserts))) * 100).toFixed(2) + '%'; if (cache_size == 'NaN%') cache_size = 'OFF'; var Con = '