Commit 2352cdf1 authored by dmorley's avatar dmorley

status of all the things in the db

parent bdcab3de
Pipeline #544 failed with stage
in 2 minutes and 21 seconds
......@@ -27,14 +27,14 @@ try {
} catch (\RedBeanPHP\RedException $e) {
die('Status Red Error in SQL query: ' . $e->getMessage());
}
$pods_updated_stats = Carbon::createFromFormat('Y-m-d H:i:s', $updbstatus['pods_updated'])->diffForHumans();
$pods_updated_stats = Carbon::createFromFormat('Y-m-d H:i:s', $updbstatus['pods_updated'])->diffInMinutes();
echo "<small>";
if ($pods_updated_stats < 120) {
echo "System status is Green<br>";
} else {
echo "System status is Red<br>";
}
echo "Last Update was " . $pods_updated_stats . " <br>";
echo "Last Update was " . $pods_updated_stats . " minutes<br>";
echo "Last Update run duration was " . $durdbstatus['pods_update_runtime'] . " minutes";
echo "</small>";
\ No newline at end of file
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