From d0cfc1f04192bd22ce750e076d81d8be64504adc Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 27 Aug 1998 20:51:12 +0000 Subject: Fixed stat cache statistics calculation. Oops. Jeremy. (This used to be commit d6a9087e7e626e6e07503dba38854b136fe70c23) --- source3/smbd/filename.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd/filename.c') diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c index 8ef2eef96a..de4fef5189 100644 --- a/source3/smbd/filename.c +++ b/source3/smbd/filename.c @@ -96,7 +96,7 @@ static int global_stat_cache_hits; void print_stat_cache_statistics(void) { - double eff = ((double)global_stat_cache_lookups/100.0)*(double)global_stat_cache_hits; + double eff = (100.0* (double)global_stat_cache_hits)/(double)global_stat_cache_lookups; DEBUG(0,("stat cache stats: lookups = %d, hits = %d, misses = %d, \ stat cache was %f%% effective.\n", global_stat_cache_lookups, -- cgit