spotify / folsom

An asynchronous memcache client for Java
Apache License 2.0
147 stars 67 forks source link

[folsom-semantic-metrics] Fix bug in computing hit-ratio #197

Closed spkrka closed 2 years ago

spkrka commented 2 years ago

The ratio should be #hits/(#hits + #misses)

Before this change it was computed as #hits/(#get requests + #multiget successes)

This is not correct, since failures will effectively be counted as misses

After this change it is computed as #hits/(#hits + #misses)