Andrew Collington 6 anni fa
parent
commit
5c46ed8e3a
1 ha cambiato i file con 7 aggiunte e 1 eliminazioni
  1. 7 1
      index.php

+ 7 - 1
index.php

@@ -213,7 +213,13 @@ class OpCacheService
         $directives = [];
         ksort($config['directives']);
         foreach ($config['directives'] as $k => $v) {
-            $directives[] = ['k' => $k, 'v' => $v];
+            if (in_array($k, ['opcache.max_file_size', 'opcache.memory_consumption']) && $v) {
+                $v = $this->size($v) . " ({$v})";
+            }
+            $directives[] = [
+                'k' => $k,
+                'v' => $v
+            ];
         }
 
         $version = array_merge(