diff options
author | Jeremy Allison <jra@samba.org> | 1998-08-27 20:51:12 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-08-27 20:51:12 +0000 |
commit | d6a9087e7e626e6e07503dba38854b136fe70c23 (patch) | |
tree | fc957646ce464ee6bdaa3b4f0a51c52423a7494d | |
parent | d0e48a2d8072c3e77a57ac6a2fb5044c05f03b41 (diff) | |
download | samba-d6a9087e7e626e6e07503dba38854b136fe70c23.tar.gz |
Fixed stat cache statistics calculation. Oops.
Jeremy.
-rw-r--r-- | source/smbd/filename.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/filename.c b/source/smbd/filename.c index 8ef2eef96a3..de4fef5189b 100644 --- a/source/smbd/filename.c +++ b/source/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, |