From 145e161994af69979c7a655e741971505e192ca7 Mon Sep 17 00:00:00 2001 From: Julie Tibshirani Date: Wed, 12 Feb 2025 11:58:58 -0800 Subject: [PATCH] Correct the compound shards metric (#913) Fixes a bug I introduced in #891. --- cmd/zoekt-sourcegraph-indexserver/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/zoekt-sourcegraph-indexserver/main.go b/cmd/zoekt-sourcegraph-indexserver/main.go index 8e584a50..255ed908 100644 --- a/cmd/zoekt-sourcegraph-indexserver/main.go +++ b/cmd/zoekt-sourcegraph-indexserver/main.go @@ -1235,7 +1235,7 @@ func setShardsCounter(indexDir string) { compoundFns = append(compoundFns, fn) } } - metricNumberCompoundShards.Set(float64(len(fns))) + metricNumberCompoundShards.Set(float64(len(compoundFns))) } func rootCmd() *ffcli.Command {