From 8f2c68b5b60c90ba4169f42f15e5c96511191dc9 Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Thu, 25 Jun 2026 14:19:43 +0200 Subject: [PATCH] fix index response, fix linter issues --- pkg/es/ilm_forecast.go | 9 ++++----- pkg/es/parallel.go | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/pkg/es/ilm_forecast.go b/pkg/es/ilm_forecast.go index 0b92a8d..9571622 100644 --- a/pkg/es/ilm_forecast.go +++ b/pkg/es/ilm_forecast.go @@ -101,11 +101,10 @@ func IlmForecastList(conf *cfg.Config) error { table.AddRow( phase.index, humanize.Bytes(uint64(phase.size)), - fmt.Sprintf("%s", phase.age), + phase.age.String(), + virtualAge.String(), - fmt.Sprintf("%s", virtualAge), - - fmt.Sprintf("%s", phase.minage), + phase.minage.String(), humanize.Bytes(uint64(phase.minsize)), phase.currentPhase, @@ -189,7 +188,7 @@ func getIlmPhaseData(conf *cfg.Config) ([]PhaseData, error) { case ResponseExplain: ilmdetails = r.explainlifecycle case ResponseIndices: - indicesres = r.indices + indicesres = r.indicesbytes case ResponseLifecycle: ilmpolicies = *r.lifecycle } diff --git a/pkg/es/parallel.go b/pkg/es/parallel.go index 1b0b7a5..9097c18 100644 --- a/pkg/es/parallel.go +++ b/pkg/es/parallel.go @@ -113,7 +113,7 @@ func getApiData(es *elasticsearch.TypedClient, wg *sync.WaitGroup, Bytes(bytes.Bytes{Name: "b"}). Do(context.Background()) - ar.indices = &res + ar.indicesbytes = &res ar.which = ResponseIndices arerr = err