|
@@ -37,11 +37,11 @@ |
|
|
block discarded – undo |
|
37
|
37
|
$status = opcache_get_status(); |
|
38
|
38
|
if (!empty($status)) { |
|
39
|
39
|
$path = dirname(dirname($this->request->getFilename())); |
|
40
|
|
- $scripts = array_filter($status['scripts'], function ($val) use ($path) { |
|
|
40
|
+ $scripts = array_filter($status['scripts'], function($val) use ($path) { |
|
41
|
41
|
return strpos($val['full_path'], $path) !== false; |
|
42
|
42
|
}); |
|
43
|
43
|
$status['scripts'] = array_values($scripts); |
|
44
|
|
- $bytes = array_reduce($status['scripts'], function ($stack, $val) { |
|
|
44
|
+ $bytes = array_reduce($status['scripts'], function($stack, $val) { |
|
45
|
45
|
return $stack + $val['memory_consumption']; |
|
46
|
46
|
}); |
|
47
|
47
|
$scriptCount = count($scripts); |
Please login to merge, or discard this patch.