From 997dd6976e5ef0ac31aad9d3c87e0b286d08fec0 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Sun, 15 Mar 2020 20:48:18 -0400 Subject: [PATCH] Storing seconds instead of milliseconds in new API log --- api/cora/database.php | 2 +- api/cora/request.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/cora/database.php b/api/cora/database.php index 1b01b25..9dcec1a 100644 --- a/api/cora/database.php +++ b/api/cora/database.php @@ -370,7 +370,7 @@ final class database extends \mysqli { $this->queries[] = [ 'query' => $query, - 'time' => (($stop - $start) * 1000) + 'time' => ($stop - $start) ]; if($result === false) { diff --git a/api/cora/request.php b/api/cora/request.php index 180bd33..f28843c 100644 --- a/api/cora/request.php +++ b/api/cora/request.php @@ -571,7 +571,7 @@ final class request { // a new shutdown handler and no output will be sent to the client. I just // have to handle all problems manually. 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 // variable for details.