Skip to content

Commit

Permalink
[ci] change metric to green if greater than (#50)
Browse files Browse the repository at this point in the history
Currently the metric on go/flaky only turns green when it is an exact
match (see the 24% number). Change it to green if it is greater than.

<img width="1851" alt="Screenshot 2024-01-23 at 9 47 52 AM"
src="https://github.com/ray-project/travis-tracker-v2/assets/128072568/55e897b0-8a4b-4dfb-8b0d-8cfea0af5632">

Signed-off-by: can <[email protected]>
  • Loading branch information
can-anyscale authored Jan 23, 2024
1 parent 048a96f commit 35c91b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/components/stat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const StatsPane: React.FC<Prop> = ({ stats }) => (
title={s.key}
value={s.value.toFixed(0)}
valueStyle={{
color: s.value === s.desired_value ? "green" : "red",
color: s.value >= s.desired_value ? "green" : "red",
textAlign: "right",
}}
suffix={s.unit}
Expand Down

0 comments on commit 35c91b9

Please sign in to comment.