Skip to content

Commit 868b271

Browse files
mbevc1tzneal
authored andcommitted
feat: Improve status outputs
1 parent bd5f708 commit 868b271

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/model/uimodel.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@ func (u *UIModel) writeClusterSummary(resources []v1.ResourceName, stats Stats,
167167

168168
u.progress.ShowPercentage = false
169169
monthlyPrice := stats.TotalPrice * (365 * 24) / 12 // average hours per month
170-
clusterPrice := fmt.Sprintf("%0.3f/hour $%0.3f/month", stats.TotalPrice, monthlyPrice)
170+
clusterPrice := fmt.Sprintf("$%0.3f/hour | $%0.3f/month", stats.TotalPrice, monthlyPrice)
171171
if firstLine {
172-
fmt.Fprintf(w, "%d nodes\t%s/%s\t%s\t%s\t%s\t%s\n",
172+
fmt.Fprintf(w, "%d nodes\t(%s/%s)\t%s\t%s\t%s\t%s\n",
173173
stats.NumNodes, used.String(), allocatable.String(), pctUsedStr, res, u.progress.ViewAs(pctUsed/100.0), clusterPrice)
174174
} else {
175175
fmt.Fprintf(w, " \t%s/%s\t%s\t%s\t%s\t\n",

0 commit comments

Comments
 (0)