]> xenbits.xensource.com Git - osstest.git/commitdiff
sg-report-host-history: Rerganisation: Read old logs later
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 24 Jul 2020 15:51:28 +0000 (16:51 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Thu, 6 Aug 2020 09:23:19 +0000 (10:23 +0100)
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

index 34216aa22e5c006ad1e5b597e9aa6655ef0d29dd..3f4670e5f667a3ab112dd4388e47f65c4fc103a1 100755 (executable)
@@ -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);