mirror of
https://github.com/friendica/friendica
synced 2024-11-10 06:22:53 +00:00
Changed double-quotes to single
This commit is contained in:
parent
88870d18be
commit
f689faca99
1 changed files with 8 additions and 8 deletions
|
@ -1719,29 +1719,29 @@ class Database
|
|||
*/
|
||||
public function processlist(): array
|
||||
{
|
||||
$ret = $this->p("SHOW PROCESSLIST");
|
||||
$ret = $this->p('SHOW PROCESSLIST');
|
||||
$data = $this->toArray($ret);
|
||||
|
||||
$processes = 0;
|
||||
$states = [];
|
||||
foreach ($data as $process) {
|
||||
$state = trim($process["State"]);
|
||||
$state = trim($process['State']);
|
||||
|
||||
// Filter out all non blocking processes
|
||||
if (!in_array($state, ["", "init", "statistics", "updating"])) {
|
||||
if (!in_array($state, ['', 'init', 'statistics', 'updating'])) {
|
||||
++$states[$state];
|
||||
++$processes;
|
||||
}
|
||||
}
|
||||
|
||||
$statelist = "";
|
||||
$statelist = '';
|
||||
foreach ($states as $state => $usage) {
|
||||
if ($statelist != "") {
|
||||
$statelist .= ", ";
|
||||
if ($statelist != '') {
|
||||
$statelist .= ', ';
|
||||
}
|
||||
$statelist .= $state . ": " . $usage;
|
||||
$statelist .= $state . ': ' . $usage;
|
||||
}
|
||||
return (["list" => $statelist, "amount" => $processes]);
|
||||
return (['list' => $statelist, 'amount' => $processes]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue