From 83307ac677ae7adddef70df5b39163fa6e4ed860 Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Wed, 8 Jul 2026 15:02:17 +0200 Subject: [PATCH] satisfy linter --- pkg/es/node.go | 2 +- pkg/printer/bytes.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/es/node.go b/pkg/es/node.go index 1b42d36..14609b8 100644 --- a/pkg/es/node.go +++ b/pkg/es/node.go @@ -127,7 +127,7 @@ func NodeShow(conf *cfg.Config, nodename string) error { {"Node version", info.Version}, // FIXME: not implemented upstream // see: https://github.com/elastic/go-elasticsearch/issues/1526 - //{"Allocated shards", stat.Allocations.XXX}, + // {"Allocated shards", stat.Allocations.XXX}, {"HTTP clients", *stat.Http.CurrentOpen}, {"CPUs", *info.Os.AllocatedProcessors}, {"Load 15m/5m/1m", fmt.Sprintf("%.2f/%.2f/%.2f", diff --git a/pkg/printer/bytes.go b/pkg/printer/bytes.go index 87cac11..39cfcb5 100644 --- a/pkg/printer/bytes.go +++ b/pkg/printer/bytes.go @@ -32,5 +32,6 @@ func Bytes(size int64) *ByteSize { func ByteString(size int64) string { b := ByteSize{size: uint64(size)} + return b.String() }