瀏覽代碼

round(()*1000.0)

visuddhinanda 2 年之前
父節點
當前提交
b1409b3ac7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Http/Middleware/ApiLog.php

+ 1 - 1
app/Http/Middleware/ApiLog.php

@@ -22,7 +22,7 @@ class ApiLog
         $response = $next($request);
         if (defined('LARAVEL_START'))
         {
-            $delay = round((microtime(true) - LARAVEL_START)*1000,2);
+            $delay = round((microtime(true) - LARAVEL_START)*1000.0);
             $api = [];
             $api[] = date("h:i:sa",LARAVEL_START);
             $api[] = $delay;