From 5c46ed8e3a5d2034ee37c8fbada81720bfc03878 Mon Sep 17 00:00:00 2001 From: Andrew Collington Date: Thu, 11 Jul 2019 19:04:14 +0100 Subject: [PATCH] Fixes issues #40 --- index.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 28239c5..a42fc5a 100644 --- a/index.php +++ b/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(