Fix cbpm count in tmux monitor

This commit is contained in:
DariusIII
2017-02-08 13:58:47 +01:00
parent 0878ba77ee
commit bdf065fe6b
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -1,3 +1,5 @@
2017-02-08 DariusIII
* Fix: Fix cbpm count in tmux monitor
2017-02-07 DariusIII
* Chg: Update multigroup handling
2017-02-01 DariusIII
+2 -2
View File
@@ -662,10 +662,10 @@ class Tmux
$regstr = '^(multigroup_)?(collections|binaries|parts|missed_parts)(_[0-9]+)?$';
return $this->pdo->queryDirect("
SELECT TABLE_NAME
SELECT TABLE_NAME AS name
FROM information_schema.TABLES
WHERE TABLE_SCHEMA = (SELECT DATABASE())
AND TABLE_NAME REGEXP {$regstr}
AND TABLE_NAME REGEXP {$this->pdo-> escapeString($regstr)}
ORDER BY TABLE_NAME ASC"
);
}