Skip to content

Commit

Permalink
Correct the compound shards metric (#913)
Browse files Browse the repository at this point in the history
Fixes a bug I introduced in #891.
  • Loading branch information
jtibshirani authored Feb 12, 2025
1 parent 8fd1b54 commit 145e161
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/zoekt-sourcegraph-indexserver/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 145e161

Please sign in to comment.