1
0
Fork 0

Quit when processlist is too long

This commit is contained in:
Michael Vogel 2016-06-03 23:10:23 +02:00
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));
}
}
?>