Fix tables count in monitor pane

This commit is contained in:
DariusIII
2018-07-05 14:29:04 +02:00
parent 045c3c2f12
commit dcd005f450
2 changed files with 3 additions and 3 deletions
+2 -3
View File
@@ -184,9 +184,9 @@ while ($runVar['counts']['iterations'] > 0) {
if ($psTableRowCount === false) {
echo 'Unable to prepare statement, skipping monitor updates!';
} elseif ($tables instanceof \Traversable) {
} else {
foreach ($tables as $row) {
$tbl = $row['name'];
$tbl = $row->name;
$stamp = 'UNIX_TIMESTAMP(MIN(dateadded))';
switch (true) {
@@ -350,7 +350,6 @@ while ($runVar['counts']['iterations'] > 0) {
function errorOnSQL()
{
echo ColorCLI::error(PHP_EOL.'Monitor encountered severe errors retrieving process data from MySQL. Please diagnose and try running again.'.PHP_EOL);
exit;
}
/**