summaryrefslogtreecommitdiff
path: root/source3/smbd/filename.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-08-27 20:51:12 +0000
committerJeremy Allison <jra@samba.org>1998-08-27 20:51:12 +0000
commitd0cfc1f04192bd22ce750e076d81d8be64504adc (patch)
treef061cd5aec4968c1405d4047f27b4bd1b1f78cf9 /source3/smbd/filename.c
parent5e5e320d361afcb4d9503354b3912b4c7a672197 (diff)
downloadsamba-d0cfc1f04192bd22ce750e076d81d8be64504adc.tar.gz
samba-d0cfc1f04192bd22ce750e076d81d8be64504adc.tar.bz2
samba-d0cfc1f04192bd22ce750e076d81d8be64504adc.zip
Fixed stat cache statistics calculation. Oops.
Jeremy. (This used to be commit d6a9087e7e626e6e07503dba38854b136fe70c23)
Diffstat (limited to 'source3/smbd/filename.c')
-rw-r--r--source3/smbd/filename.c2
1 files changed, 1 insertions, 1 deletions
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,