]> xenbits.xensource.com Git - osstest.git/commitdiff
history reporting (nfc): Rename jobquery to cacheable_query
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 4 Aug 2020 17:00:27 +0000 (18:00 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Wed, 19 Aug 2020 10:41:18 +0000 (11:41 +0100)
Prep work.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
sg-report-host-history

index fe5b7cc2313555bd65ce2262110b698271d8261a..a8dae15918c9afeec4ad08b135d4bb502d1fdac0 100755 (executable)
@@ -171,7 +171,7 @@ END
 our $jqcachemisses = 0;
 our $jqtotal = 0;
 
-sub jobquery ($$$) {
+sub cacheable_query ($$$) {
     my ($q, $jr, $cachekey) = @_;
     $jqtotal++;
     $cachekey = '%'.$cachekey;
@@ -292,7 +292,7 @@ END
            $cachehits++;
        }
 
-       my $endedrow = jobquery($endedq, $jr, 'e');
+       my $endedrow = cacheable_query($endedq, $jr, 'e');
        if (!$endedrow) {
            #print DEBUG "no-finished\n";
            next;
@@ -322,8 +322,8 @@ END
        }
 
         #print DEBUG "JR $jr->{flight}.$jr->{job}\n";
-       my $ir = jobquery($infoq, $jr, 'i');
-       my $ar = jobquery($allocdq, $jr, 'a');
+       my $ir = cacheable_query($infoq, $jr, 'i');
+       my $ar = cacheable_query($allocdq, $jr, 'a');
        my $ident = $jr->{name};
 
        my $altcolour = report_altcolour($alternate);