mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
showqueries output incorrectly shows "ms" instead of "s"
This commit is contained in:
parent
55de41b0d5
commit
e93683bfca
@ -143,7 +143,7 @@ class MySQLDatabase extends SS_Database {
|
||||
|
||||
if(isset($_REQUEST['showqueries']) && Director::isDev(true)) {
|
||||
$endtime = round(microtime(true) - $starttime,4);
|
||||
Debug::message("\n$sql\n{$endtime}ms\n", false);
|
||||
Debug::message("\n$sql\n{$endtime}s\n", false);
|
||||
}
|
||||
|
||||
if(!$handle && $errorLevel) {
|
||||
@ -1215,4 +1215,4 @@ class MySQLDatabase extends SS_Database {
|
||||
// Prefix with database name
|
||||
return Convert::raw2sql($this->database . '_' . Convert::raw2sql($name));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user