Imported Upstream version 0.6.25
This commit is contained in:
@@ -72,7 +72,7 @@ foreach ($this->DS as $KEY=>$VAL) {
|
||||
$def[$defcnt] .= rrd::area("ag","#$green");
|
||||
$def[$defcnt] .= rrd::area("ay","#$yellow");
|
||||
$def[$defcnt] .= rrd::area("ar","#$red");
|
||||
$def[$defcnt] .= rrd::line1("fullscans","#000000", "Full table sacns");
|
||||
$def[$defcnt] .= rrd::line1("fullscans","#000000", "Full table scans");
|
||||
$def[$defcnt] .= rrd::gprint("fullscans",array("MAX", "AVERAGE", "LAST"),"%3.2lf");
|
||||
$defcnt++;
|
||||
}
|
||||
@@ -359,6 +359,14 @@ foreach ($this->DS as $KEY=>$VAL) {
|
||||
$defcnt++;
|
||||
}
|
||||
|
||||
if(preg_match('/^sql_runtime$/', $VAL['NAME'])) {
|
||||
$ds_name[$defcnt] = "SQL runtime";
|
||||
$opt[$defcnt] = "--vertical-label \"Seconds\" --title \"Execution time of the SQL statement\" ";
|
||||
$def[$defcnt] = "";
|
||||
$def[$defcnt] .= rrd::def("runtime",$VAL['RRDFILE'],$VAL['DS'],"AVERAGE:reduce=LAST") ;
|
||||
$def[$defcnt] .= rrd::area("runtime","#111111");
|
||||
$def[$defcnt] .= rrd::gprint("runtime",array("LAST", "MAX", "AVERAGE"),"%3.2lf Seconds") ;
|
||||
$defcnt++;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user