Commit 49442eb4 authored by dmorley's avatar dmorley
Browse files

count all records on status

parent f12774e2
Pipeline #6503 failed with stages
in 55 seconds
......@@ -5,6 +5,7 @@ declare(strict_types=1);
require_once __DIR__ . '/boot.php';
use Carbon\Carbon;
use RedBeanPHP\R;
try {
$total_count = R::getAll('
......@@ -24,13 +25,13 @@ if ($pods_updated_stats < c('status_green')) {
}
$pods_updated_stats_human = Carbon::createFromFormat('Y-m-d H:i:s.u', getMeta('pods_updated', 'date_created'))->diffForHumans();
echo "Last update scanned " . $total_count . " sites <br>";
echo "Last update scanned " . $total_count[0]['count'] . " sites <br>";
echo "Last data update was " . $pods_updated_stats_human . "<br>";
echo "Last update was " . $pods_updated_stats_human . "<br>";
$last_runtime_human = secondsToTime(getMeta("pods_update_runtime")*60);
echo "Last data update took " . $last_runtime_human . " <br>";
echo "Last update took " . $last_runtime_human . " <br>";
$lang_updated_stats = Carbon::createFromFormat('Y-m-d H:i:s.u', getMeta('languages_updated', 'date_created'))->diffForHumans();
echo "Last Language check was " . $lang_updated_stats . "<br>";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment