Max F 5 anni fa
parent
commit
0738453a19
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      src/App/Middlewares/DebugBar/SqlDbCollector.php

+ 3 - 3
src/App/Middlewares/DebugBar/SqlDbCollector.php

@@ -23,13 +23,13 @@ class SqlDbCollector extends DataCollector implements Renderable, AssetProvider
 	    return [
 	        'nb_statements' => count($this->sql_queries),
 	        'accumulated_duration' => $this->totalExecTime,
-	        'accumulated_duration_str' => round($this->totalExecTime, 4),
+	        'accumulated_duration_str' => formatDuration($this->totalExecTime),
 	        'statements' => $this->sql_queries,
             'nb_failed_statements' => $this->nb_failed_statements,
             'memory_usage' => $this->total_memory,
-            'memory_usage_str' => round($this->total_memory/1000000, 1) . " Mo",
+            'memory_usage_str' => formatSize($this->total_memory),
             'peak_memory_usage' => $this->max_memory,
-            'peak_memory_usage_str' => round($this->max_memory/1000000, 1) . " Mo",
+            'peak_memory_usage_str' => formatSize($this->max_memory),
 	    ];
     }