Fixes issues #40

This commit is contained in:
Andrew Collington 2019-07-11 19:04:14 +01:00
parent 2fd6922c9e
commit 5c46ed8e3a

View file

@ -213,7 +213,13 @@ class OpCacheService
$directives = []; $directives = [];
ksort($config['directives']); ksort($config['directives']);
foreach ($config['directives'] as $k => $v) { 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( $version = array_merge(