]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
config: Use stats from conf struct
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 16 Jul 2011 19:56:51 +0000 (21:56 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 20 Jul 2011 21:31:37 +0000 (23:31 +0200)
stats.c

diff --git a/stats.c b/stats.c
index 3d02c2d693306f86bcf84c844de462b273ff35d8..585468d4e16f4674318a49452902fb2732160810 100644 (file)
--- 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();