@@ -68,7 +68,7 @@ |
||
| 68 | 68 | ], |
| 69 | 69 | 'total_processes' => 1, |
| 70 | 70 | 'running_processes' => 0, // Unknown without direct access |
| 71 | - 'failed_processes' => 0, // Unknown without direct access |
|
| 71 | + 'failed_processes' => 0, // Unknown without direct access |
|
| 72 | 72 | ]; |
| 73 | 73 | |
| 74 | 74 | // Consider it healthy if supervisor is reachable (process monitoring available) |
@@ -183,7 +183,9 @@ |
||
| 183 | 183 | $lines = explode("\n", trim($output)); |
| 184 | 184 | |
| 185 | 185 | foreach ($lines as $line) { |
| 186 | - if (trim($line) === '') continue; |
|
| 186 | + if (trim($line) === '') { |
|
| 187 | + continue; |
|
| 188 | + } |
|
| 187 | 189 | |
| 188 | 190 | // Parse supervisorctl status output format: "process_name STATUS description" |
| 189 | 191 | if (preg_match('/^(\S+)\s+(\S+)\s+(.*)$/', trim($line), $matches)) { |