Message ID | 20200724172216.28204-9-ian.jackson@eu.citrix.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Improve performance of sg-report-host-history | expand |
diff --git a/sg-report-host-history b/sg-report-host-history index 509d053d..4b0b5b2d 100755 --- a/sg-report-host-history +++ b/sg-report-host-history @@ -465,14 +465,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);
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 <ian.jackson@eu.citrix.com> --- sg-report-host-history | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)