From: Andrew Tridgell Date: Tue, 21 Jan 2003 07:42:28 +0000 (+0100) Subject: make sure we display the max cache size correctly with the new default X-Git-Tag: v2.2~11 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=7ebe2a139ee0244180ad03ede263fb2c67065744;p=thirdparty%2Fccache.git make sure we display the max cache size correctly with the new default cache size code. hack hack. --- diff --git a/stats.c b/stats.c index bfe5ec9e6..35e73ffc1 100644 --- a/stats.c +++ b/stats.c @@ -222,6 +222,12 @@ void stats_summary(void) stats_read(fname, counters); free(fname); + + /* oh what a nasty hack ... */ + if (dir == -1) { + counters[STATS_MAXSIZE] = 0; + } + } /* and display them */