Making the report show the last monitor entries first.

This commit is contained in:
sergiotarxz 2021-11-14 00:52:03 +01:00
parent 413f2d8e5a
commit dd1d7c783f
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ EOF
$message .= "\nLast hour monitor\n\n";
my $monitor = $dbh->selectall_arrayref(
<<'EOF', { Slice => {} }, $current_date->clone->add( hours => -1 ) . '' );
SELECT date_execution, name, is_up FROM monitor where date_execution > ?;
SELECT date_execution, name, is_up FROM monitor where date_execution > ? ORDER BY date_execution DESC;
EOF
for my $register (@$monitor) {