From: rousskov <> Date: Sun, 12 Apr 1998 12:00:44 +0000 (+0000) Subject: - added dumper for integer-based histograms X-Git-Tag: SQUID_3_0_PRE1~3508 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=173d54abd5f2c332ac8e72d8ae26347ce0068a2d;p=thirdparty%2Fsquid.git - added dumper for integer-based histograms --- diff --git a/src/StatHist.cc b/src/StatHist.cc index 8a3e8fb305..ce83704923 100644 --- a/src/StatHist.cc +++ b/src/StatHist.cc @@ -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); +}