Skip to content

Commit

Permalink
Merge pull request #32891 from vespa-engine/geirst/fix-hit-rate-cache…
Browse files Browse the repository at this point in the history
…-metric

Fix hit rate metric for cache by avoiding precision loss.
  • Loading branch information
toregge authored Nov 19, 2024
2 parents c1b33d5 + 52eecf5 commit 9667167
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace proton {
class CacheMetrics : public metrics::MetricSet {
metrics::LongValueMetric memoryUsage;
metrics::LongValueMetric elements;
metrics::LongAverageMetric hitRate;
metrics::DoubleAverageMetric hitRate;
metrics::LongCountMetric lookups;
metrics::LongCountMetric invalidations;
std::string _cache_name;
Expand Down

0 comments on commit 9667167

Please sign in to comment.