Skip to content

Commit eec9a1b

Browse files
author
Tim Middleton
authored
Minor formatting for get cache-partitions (#248)
1 parent a66bd40 commit eec9a1b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/cmd/cache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ func getCacheDetails(cmd *cobra.Command, args []string, displayType string) erro
663663
} else if displayType == storage {
664664
cmd.Println(FormatCacheDetailsStorage(cacheDetails.Details))
665665
} else if displayType == partitionDisplayType {
666-
cmd.Printf("Cache: %s\n", args[0])
666+
cmd.Printf("Cache: %s\n", args[0])
667667
cmd.Println(FormatCachePartitions(cachePartitionDetails.Details, cacheSummary))
668668
}
669669

pkg/cmd/formatting.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1065,7 +1065,7 @@ func FormatCachePartitions(cacheDetails []config.CachePartitionDetail, summary b
10651065
}
10661066
}
10671067

1068-
header := fmt.Sprintf("Partitions: %s\nTotal Count: %s\nTotal Size: %s\nMax Entry Size: %s (bytes)\nOwning Partition: %s\n\n",
1068+
header := fmt.Sprintf("Partitions: %s\nTotal Count: %s\nTotal Size: %s\nMax Entry Size: %s (bytes)\nMax Size Partition: %s\n\n",
10691069
formatSmallInteger(int32(len(cacheDetails))), formatLargeInteger(totalEntries), formattingFunction(totalSize),
10701070
formatSmallInteger(maxEntrySize), formatSmallInteger(maxEntryRecord.PartitionID))
10711071

0 commit comments

Comments
 (0)