mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
Fixed stat cache statistics calculation. Oops.
Jeremy.
This commit is contained in:
parent
d0e48a2d80
commit
d6a9087e7e
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user