[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [OSSTEST PATCH 11/60] history reporting (nfc): Rename $cachehits to $rows_hit
Prep work. Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> --- sg-report-host-history | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sg-report-host-history b/sg-report-host-history index 8c5cd105..705367cf 100755 --- a/sg-report-host-history +++ b/sg-report-host-history @@ -118,7 +118,7 @@ sub cache_row_lookup_prep ($) { my $cacherow = $cache{cache_row_key($$jrr)}; if ($cacherow) { $$jrr = $cacherow; - $cachehits++; + $rows_hit++; } } @@ -303,7 +303,7 @@ END # The contents of $jr for each job is cached across runs. my @rows; - my $cachehits = 0; + my $rows_hit = 0; foreach my $jr (@$inrows) { #print DEBUG "JOB $jr->{flight}.$jr->{job} "; @@ -320,7 +320,7 @@ END push @rows, { %$jr, %$endedrow }; } - print DEBUG "CACHE $hostname $cachehits / ".(scalar @rows) + print DEBUG "CACHE $hostname $rows_hit / ".(scalar @rows) ." of ".(scalar %cache)."\n"; @rows = sort { $b->{finished} <=> $a->{finished} } @rows; -- 2.11.0
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |