]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
- added dumper for integer-based histograms
authorrousskov <>
Sun, 12 Apr 1998 12:00:44 +0000 (12:00 +0000)
committerrousskov <>
Sun, 12 Apr 1998 12:00:44 +0000 (12:00 +0000)
src/StatHist.cc

index 8a3e8fb30543cc0331e90cbb4ea50535f47175d7..ce837049234fd2a7eaf5897d296e77fb3858149e 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: StatHist.cc,v 1.5 1998/03/05 00:42:45 wessels Exp $
+ * $Id: StatHist.cc,v 1.6 1998/04/12 06:00:44 rousskov Exp $
  *
  * DEBUG: section 62    Generic Histogram
  * AUTHOR: Duane Wessels
@@ -223,3 +223,11 @@ statHistEnumInit(StatHist * H, int last_enum)
 {
     statHistInit(H, last_enum + 3, &Null, &Null, -1, last_enum + 1 + 1);
 }
+
+void
+statHistIntDumper(StoreEntry * sentry, int idx, double val, double size, int count)
+{
+    if (count)
+        storeAppendPrintf(sentry, "%2d\t %5d\t %5d\n",
+            idx, (int) val, count);
+}