Skip to content

Commit a27d5eb

Browse files
author
Tim Middleton
authored
Minor update to cache stores command (#240)
1 parent 974546e commit a27d5eb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pkg/cmd/formatting.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1114,7 +1114,13 @@ func FormatCacheStoreDetails(cacheDetails []config.CacheStoreDetail, cache, serv
11141114
fmt.Sprintf("Service/Cache: %s/%s\n", service, cache) +
11151115
fmt.Sprintf("Cache Store Type: %s\n", cacheStoreType)
11161116
}
1117-
header += fmt.Sprintf("Total Queue TotalSize: %s\n", formatLargeInteger(totalQueueSize)) +
1117+
1118+
queueSize := "N/A"
1119+
if totalQueueSize > 0 {
1120+
queueSize = formatLargeInteger(totalQueueSize)
1121+
}
1122+
1123+
header += fmt.Sprintf("Total Queue TotalSize: %s\n", queueSize) +
11181124
fmt.Sprintf("Total Store Failures: %s\n", formatLargeInteger(totalFailures)) + "\n"
11191125

11201126
return header + table.String()

0 commit comments

Comments
 (0)