Quit when processlist is too long

This commit is contained in:
Michael Vogel
2016-06-03 23:10:23 +02:00
parent 4914e8826b
commit df337e57d1
3 changed files with 21 additions and 7 deletions

View File

@@ -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));
}
}
?>