[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[OSSTEST PATCH 58/60] sg-report-host-history: Cache report_run_getinfo


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
  • Date: Fri, 14 Aug 2020 18:22:03 +0100
  • Authentication-results: esa2.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
  • Cc: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
  • Delivery-date: Fri, 14 Aug 2020 17:26:35 +0000
  • Ironport-sdr: Ttne0r5bkUnbUn8tKVnj2W5yAnkY9A665WG9yujMtyhHyu49ixe82UGhah0IkSfUYWyNivVWPR 5H1DVurFh7Y0Tbpy5My9AZ4N3gnRcuaRpqMeCdnHnWpxMAPhW2EsZUP2Gulv+QoH9k6qEecZR0 OmiKb6fAKuX9f+LVlvQc1ItcYMT8EScEmAwasSbC6ehupnFvNehm9p3+965bfIcYZmYNBXK4YO T6p00m/1MCrAGa77M9Zg8yFww0kUTy2lzE78MOAIthLe3zx5PWyNIv/53IgFNb0J8E930QrEeX J74=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

No logical change.

Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 sg-report-host-history | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sg-report-host-history b/sg-report-host-history
index efe652bb..a814ef37 100755
--- a/sg-report-host-history
+++ b/sg-report-host-history
@@ -266,7 +266,9 @@ END
 
        print H "<td><a href=\"$url\">$jr->{job}</td>\n";
 
-       my $ri = report_run_getinfo({ %$jr, %$ir });
+       my $ri = cacheable_fn($jr, 'rri', sub {
+            report_run_getinfo({ %$jr, %$ir })
+       });
        print H "<td $ri->{ColourAttr}>$ri->{Content}</td>\n";
 
        my $powers = cacheable_fn($jr, 'b', sub {
-- 
2.11.0




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.