Skip to content

Commit

Permalink
(feat) color code for alloc
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed Apr 6, 2024
1 parent c19078d commit d3c0599
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/pkg/badge.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,8 @@ func (e *Badge) getBadgeColors(metric string) (badge.Color, badge.Color, badge.C
metric == "hr" {
return "#fff", "gray", "#FFFF00"
}
if metric == "alloc" {
return "#fff", "gray", "#00FF00"
}
return "#bbb", "#fff", "gray"
}

0 comments on commit d3c0599

Please sign in to comment.