Prep work.

Signed-off-by: Ian Jackson <ian.jack...@eu.citrix.com>
---
 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 fe5b7cc2..a8dae159 100755
--- a/sg-report-host-history
+++ b/sg-report-host-history
@@ -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);
-- 
2.11.0


Reply via email to