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

[OSSTEST PATCH 18/60] history reporting (nfc): Remove now-obsolete stats variables


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
  • Date: Fri, 14 Aug 2020 18:21:23 +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:27:15 +0000
  • Ironport-sdr: rN03X/xWpyNFlP8uKUjQzg7ydkvMigvB9XdODXnIvKmKwA+hYOqXlh3X80p/3EImZMqIx1rHD/ e7+eRc6ok8PCrC84/cgnuGAJWdTZexmGezUF70pcd2lmKfZZtTK3KeKlwve85oylAA2tO9/TPd ykc181jArbFGsi0H/LVHyBzq42BEvZt3YrynPe8RyxeyO0uusxGjE07Mw3WSbwlSmSPtE/QZar Vbzwd4n4D8Wugy/WrK4QFxZbBHJwDM+jN/rp7q3j7qYNpjUUQxpk/EZuLZKoD38m+YYPTd7heV QhM=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 sg-report-host-history | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/sg-report-host-history b/sg-report-host-history
index 9c70b560..1b4566aa 100755
--- a/sg-report-host-history
+++ b/sg-report-host-history
@@ -94,17 +94,12 @@ sub cache_row_key ($) {
     return join $; , map { $jr->{$_} } @cache_row_key_cols;
 }
 
-our $jqcachemisses = 0;
-our $jqtotal = 0;
-
 sub cacheable_fn ($$$) {
     my ($jr, $cachekey, $fn) = @_;
-    $jqtotal++;
     $cachekey = '%'.$cachekey;
     my $cached = $jr->{$cachekey};
     $q_count{$cachekey}++;
     if (!$cached) {
-       $jqcachemisses++;
        $q_misses{$cachekey}++;
        $cached = $fn->();
        $jr->{$cachekey} = $cached;
-- 
2.11.0




 


Rackspace

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