From e68b398876221b2d3b14ff6507a7dc75eb91f66a Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 4 Aug 2020 18:00:27 +0100 Subject: [PATCH] history reporting (nfc): Rename jobquery to cacheable_query Prep work. Signed-off-by: Ian Jackson --- 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 fe5b7cc..a8dae15 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.39.5