Fix to add Qcache_hits value to Com_select in order to get the real value

This commit is contained in:
Jordi Sanfeliu 2013-01-16 09:29:52 +01:00
parent 62465a2765
commit 7b2fda1727
1 changed files with 1 additions and 0 deletions

View File

@ -363,6 +363,7 @@ sub mysql_update {
}
if($name eq "Com_select") {
$str = $n . "com_select";
$value += $qcache_hits;
$com_select = $value - ($config->{mysql_hist}->{$str} || 0);
$com_select = 0 unless $com_select != $value;
$com_select /= 60;