We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88632e7 commit 8611512Copy full SHA for 8611512
dnscrypt-proxy/monitoring_ui.go
@@ -593,11 +593,11 @@ func (mc *MetricsCollector) GetMetrics() map[string]interface{} {
593
avgResponseTime = float64(responseTimeSum) / float64(responseTimeCount)
594
}
595
596
- // Calculate cache hit ratio
+ // Calculate cache hit ratio (as decimal 0-1, not percentage)
597
var cacheHitRatio float64
598
totalCacheQueries := cacheHits + cacheMisses
599
if totalCacheQueries > 0 {
600
- cacheHitRatio = float64(cacheHits) / float64(totalCacheQueries) * 100
+ cacheHitRatio = float64(cacheHits) / float64(totalCacheQueries)
601
602
603
// Calculate per-server metrics sorted by increasing average response time
0 commit comments