Fixed cache hit ratio calculation.