Skip to content

Commit 4d7f6e7

Browse files
authored
Align class list vertically always (#481)
1 parent 4f9871d commit 4d7f6e7

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

cli/cmd/get.go

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -388,23 +388,6 @@ func classificationMetricsTable(apiMetrics schema.APIMetrics) string {
388388
}
389389
sort.Strings(classList)
390390

391-
if len(classList) > 0 && len(classList) < 4 {
392-
row := []interface{}{}
393-
headers := []table.Header{}
394-
395-
for _, className := range classList {
396-
headers = append(headers, table.Header{Title: s.TruncateEllipses(className, 20), MaxWidth: 20})
397-
row = append(row, apiMetrics.ClassDistribution[className])
398-
}
399-
400-
t := table.Table{
401-
Headers: headers,
402-
Rows: [][]interface{}{row},
403-
}
404-
405-
return table.MustFormat(t)
406-
}
407-
408391
rows := make([][]interface{}, len(classList))
409392
for rowNum, className := range classList {
410393
rows[rowNum] = []interface{}{

pkg/consts/consts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ var (
3838

3939
TelemetryURL = "https://telemetry.cortexlabs.dev"
4040

41-
MaxClassesPerRequest = 75 // cloudwatch.GeMetricData can get up to 100 metrics per request, avoid multiple requests and have room for other stats
41+
MaxClassesPerRequest = 20 // cloudwatch.GeMetricData can get up to 100 metrics per request, avoid multiple requests and have room for other stats
4242
)

0 commit comments

Comments
 (0)