]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
More detailed report
authorrousskov <>
Mon, 30 Mar 1998 03:32:16 +0000 (03:32 +0000)
committerrousskov <>
Mon, 30 Mar 1998 03:32:16 +0000 (03:32 +0000)
src/cache_diff.cc

index a0a6707be32ea541424b3f893088afcc7867322d..260c4fc58dc347e3e4e0b06cab1ee61306777bbd 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: cache_diff.cc,v 1.2 1998/03/29 20:18:46 rousskov Exp $
+ * $Id: cache_diff.cc,v 1.3 1998/03/29 20:32:16 rousskov Exp $
  *
  * AUTHOR: Alex Rousskov
  *
@@ -182,7 +182,7 @@ cacheIndexScan(CacheIndex *idx, const char *fname, FILE *file)
        }
     }
     fprintf(stderr, "%s:%d: scanned (size: %d bytes)\n", 
-       fname, count, count*sizeof(CacheEntry));
+       fname, count, (int)(count*sizeof(CacheEntry)));
     return count;
 }
 
@@ -191,9 +191,10 @@ cacheIndexCmpReport(CacheIndex *idx, int shared_count)
 {
     assert(idx && shared_count <= idx->count);
 
-    printf("%s:\t %7d %7.2f%% + %7.2f%%\n", 
-       idx->name, 
-       idx->count, 
+    printf("%s:\t %7d = %7d + %7d (%7.2f%% + %7.2f%%)\n",
+       idx->name,
+       idx->count,
+       shared_count, idx->count - shared_count,
        xpercent(idx->count-shared_count, idx->count),
        xpercent(shared_count, idx->count));
 }