3 public static function processlist() {
4 $r = q("SHOW PROCESSLIST");
8 foreach ($r AS $process) {
9 $state = trim($process["State"]);
10 if (!in_array($state, array("", "init", "statistics")))
18 foreach ($states AS $state => $usage) {
21 $statelist .= $state.": ".$usage;