Quit when processlist is too long
This commit is contained in:
parent
4914e8826b
commit
df337e57d1
3 changed files with 21 additions and 7 deletions
|
|
@ -15,12 +15,14 @@ class dbm {
|
|||
// updating
|
||||
|
||||
$statelist = "";
|
||||
$processes = 0;
|
||||
foreach ($states AS $state => $usage) {
|
||||
if ($statelist != "")
|
||||
$statelist .= ", ";
|
||||
$statelist .= $state.": ".$usage;
|
||||
++$processes;
|
||||
}
|
||||
return($statelist);
|
||||
return(array("list" => $statelist, "amount" => $processes));
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue