remove unneccessary fmt.Sprintf's

This commit is contained in:
2026-07-07 06:43:34 +02:00
parent 86f17329b0
commit 3abe8b62a2
2 changed files with 13 additions and 13 deletions

View File

@@ -256,8 +256,8 @@ func gatherClusterStats(conf *cfg.Config, clusterstats *clusterstats.Response, t
}
table.Entries = append(table.Entries, [][]any{
{"Indicies", fmt.Sprintf("%d", clusterstats.Indices.Count)},
{"Docs", fmt.Sprintf("%d", clusterstats.Indices.Docs.Count)},
{"Indicies", clusterstats.Indices.Count},
{"Docs", clusterstats.Indices.Docs.Count},
{"Total Size", printer.Bytes(clusterstats.Indices.Docs.TotalSizeInBytes)},
{"Total Queries", "%d", querycount},
{"Shards Primaries", clusterstats.Indices.Shards.Primaries},