Calculate hit if miss and ratio are present
Improvement on hit/miss calculation
Merge pull request #2 from yurigorokhov/master

hit/miss calculation improvements