BUGFIX: report query times correctly

This commit is contained in:
Mark Stephens 2011-11-03 20:55:02 +13:00
parent 8bbf8401f9
commit b08cf4b4ba
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}