mirror of
https://github.com/silverstripe/silverstripe-postgresql
synced 2024-10-22 15:05:45 +00:00
BUGFIX: report query times correctly
This commit is contained in:
parent
8bbf8401f9
commit
b08cf4b4ba
@ -230,7 +230,7 @@ class PostgreSQLDatabase extends SS_Database {
|
||||
$handle = pg_query($this->dbConn, $sql);
|
||||
|
||||
if(isset($_REQUEST['showqueries'])) {
|
||||
$endtime = round(microtime(true) - $starttime * 1000, 1);
|
||||
$endtime = round((microtime(true) - $starttime) * 1000, 1);
|
||||
Debug::message("\n$sql\n{$endtime}ms\n", false);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user