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…
Reference in New Issue