From 6097fb7d99520b04bd105de31cbc24909b8dfc57 Mon Sep 17 00:00:00 2001 From: Tim Middleton Date: Fri, 18 Oct 2024 09:48:36 +0800 Subject: [PATCH] Minor update to cache stores command --- pkg/cmd/formatting.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkg/cmd/formatting.go b/pkg/cmd/formatting.go index 8b7d5995..81a4eee6 100644 --- a/pkg/cmd/formatting.go +++ b/pkg/cmd/formatting.go @@ -1114,7 +1114,13 @@ func FormatCacheStoreDetails(cacheDetails []config.CacheStoreDetail, cache, serv fmt.Sprintf("Service/Cache: %s/%s\n", service, cache) + fmt.Sprintf("Cache Store Type: %s\n", cacheStoreType) } - header += fmt.Sprintf("Total Queue TotalSize: %s\n", formatLargeInteger(totalQueueSize)) + + + queueSize := "N/A" + if totalQueueSize > 0 { + queueSize = formatLargeInteger(totalQueueSize) + } + + header += fmt.Sprintf("Total Queue TotalSize: %s\n", queueSize) + fmt.Sprintf("Total Store Failures: %s\n", formatLargeInteger(totalFailures)) + "\n" return header + table.String()