1
0
mirror of https://github.com/beestat/app.git synced 2025-07-09 03:04:07 -04:00

Storing seconds instead of milliseconds in new API log

This commit is contained in:
Jon Ziebell 2020-03-15 20:48:18 -04:00
parent 790aaf354e
commit 997dd6976e
2 changed files with 2 additions and 2 deletions

View File

@ -370,7 +370,7 @@ final class database extends \mysqli {
$this->queries[] = [ $this->queries[] = [
'query' => $query, 'query' => $query,
'time' => (($stop - $start) * 1000) 'time' => ($stop - $start)
]; ];
if($result === false) { if($result === false) {

View File

@ -571,7 +571,7 @@ final class request {
// a new shutdown handler and no output will be sent to the client. I just // a new shutdown handler and no output will be sent to the client. I just
// have to handle all problems manually. // have to handle all problems manually.
try { try {
$this->total_time = round((microtime(true) - $this->begin_timestamp) * 1000); $this->total_time = round((microtime(true) - $this->begin_timestamp));
// Fix the current working directory. See documentation on this class // Fix the current working directory. See documentation on this class
// variable for details. // variable for details.