diff mbox series

[OSSTEST,03/13] sg-report-host-history: Move `computeflightsrange' after hosts

Message ID 20191108185001.3319-4-ian.jackson@eu.citrix.com (mailing list archive)
State New, archived
Headers show
Series Speed up and restore host history | expand

Commit Message

Ian Jackson Nov. 8, 2019, 6:49 p.m. UTC
This will allow the flights range computation to depend on the hosts
we are interested in.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
 sg-report-host-history | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/sg-report-host-history b/sg-report-host-history
index c9f4aaa6..fc51074d 100755
--- a/sg-report-host-history
+++ b/sg-report-host-history
@@ -329,10 +329,6 @@  END
         if $doinstall;
 }
 
-db_retry($dbh_tests, [], sub {
-    computeflightsrange();
-});
-
 foreach my $host (@ARGV) {
     if ($host =~ m/^flight:/) {
 	my $flight=$'; #';
@@ -365,6 +361,10 @@  END
 exit 0 unless %hosts;
 
 db_retry($dbh_tests, [], sub {
+    computeflightsrange();
+});
+
+db_retry($dbh_tests, [], sub {
     mainquery();
 });