Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
ptdewey committed Oct 20, 2024
2 parents f2501a8 + d62a251 commit 5e49f4c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions remote/internal/prettify.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package internal

import (
"fmt"
"math"
"sort"

"golang.org/x/text/cases"
Expand Down Expand Up @@ -70,6 +71,10 @@ func prettifyMetric(metric PendulumMetric, n int) string {
name := cases.Title(language.English, cases.Compact).String(metric.Name)
out := fmt.Sprintf("# Top %d %s:\n", n, prettifyMetricName(name))
for i := 0; i < n; i++ {
if math.IsNaN(float64(metric.Value[keys[i]].ActivePct)) {
continue
}

out = fmt.Sprintln(out, prettifyEntry(metric.Value[keys[i]], i, l, n))
}

Expand Down

0 comments on commit 5e49f4c

Please sign in to comment.