From: Joel Rosdahl Date: Sat, 16 Jul 2011 19:56:51 +0000 (+0200) Subject: config: Use stats from conf struct X-Git-Tag: v3.2~214 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b88ccf873f9e27ac37f56bf05729ed7a16f4a50c;p=thirdparty%2Fccache.git config: Use stats from conf struct --- diff --git a/stats.c b/stats.c index 3d02c2d69..585468d4e 100644 --- a/stats.c +++ b/stats.c @@ -205,7 +205,9 @@ stats_flush(void) bool should_flush = false; int i; - if (getenv("CCACHE_NOSTATS")) return; + if (!conf->stats) { + return; + } init_counter_updates();