From 4a4c3bc2e9787e6ab91f76df75b9b943e0bb2f38 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 24 Jul 2020 16:51:28 +0100 Subject: [PATCH] sg-report-host-history: Rerganisation: Read old logs later Perhaps at one point something read from these logs influenced the db query for thye flights range, but that is no longer the case and it doesn't seem likely to need to come back. We want to move the per-host stuff together. No functional change. Signed-off-by: Ian Jackson --- sg-report-host-history | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sg-report-host-history b/sg-report-host-history index 34216aa..3f4670e 100755 --- a/sg-report-host-history +++ b/sg-report-host-history @@ -466,14 +466,14 @@ END exit 0 unless %hosts; -foreach (keys %hosts) { - read_existing_logs($_); -} - db_retry($dbh_tests, [], sub { computeflightsrange(); }); +foreach (keys %hosts) { + read_existing_logs($_); +} + db_retry($dbh_tests, [], sub { foreach my $host (sort keys %hosts) { mainquery($host); -- 2.39.5