Fixes issues #40
This commit is contained in:
parent
2fd6922c9e
commit
5c46ed8e3a
1 changed files with 7 additions and 1 deletions
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue