]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
make sure we display the max cache size correctly with the new default
authorAndrew Tridgell <tridge@samba.org>
Tue, 21 Jan 2003 07:42:28 +0000 (08:42 +0100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 21 Jan 2003 07:42:28 +0000 (08:42 +0100)
cache size code. hack hack.

stats.c

diff --git a/stats.c b/stats.c
index bfe5ec9e6d1233ff1df96b4c6ac341a700382264..35e73ffc10200f40094b22c5d532be8319603411 100644 (file)
--- 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 */