X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdbm.php;h=3f936947d841b742139a2981a5a660ffc4b48b36;hb=db44ea0482e4cd2b9d74318f246343bb1b6e09aa;hp=d588b2f76a31946c5952de0aec817210b1e02569;hpb=a25d58b2ee785175b12fe9b1a6dcca7095dfd124;p=friendica.git diff --git a/include/dbm.php b/include/dbm.php index d588b2f76a..3f936947d8 100644 --- a/include/dbm.php +++ b/include/dbm.php @@ -1,5 +1,16 @@ List of processes, separated in their different states + * 'amount' => Number of concurrent database processes + */ public static function processlist() { $r = q("SHOW PROCESSLIST"); $s = array(); @@ -8,14 +19,13 @@ class dbm { $states = array(); foreach ($r AS $process) { $state = trim($process["State"]); + + // Filter out all idle processes if (!in_array($state, array("", "init", "statistics"))) { ++$states[$state]; ++$processes; } } - // query end - // Sending data - // updating $statelist = ""; foreach ($states AS $state => $usage) {