Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
34 | 1 | protected function execute(InputInterface $input, OutputInterface $output): int |
|
35 | { |
||
36 | 1 | $this->ensureExtensionLoaded('apcu'); |
|
37 | |||
38 | 1 | $sma = $this->getCacheTool()->apcu_sma_info(true); |
|
39 | |||
40 | 1 | $output->writeln(sprintf("<comment>Segments: <info>%s</info></comment>", $sma['num_seg'])); |
|
41 | 1 | $output->writeln(sprintf("<comment>Segment size: <info>%s</info></comment>", Formatter::bytes($sma['seg_size']))); |
|
42 | 1 | $output->writeln(sprintf("<comment>Available memory: <info>%s</info></comment>", Formatter::bytes($sma['avail_mem']))); |
|
43 | |||
44 | 1 | return 0; |
|
45 | } |
||
47 |