feat(explorer): show orange for 25-50 percent ping loss (#24530)

This commit is contained in:
Josh 2022-04-20 08:35:13 -07:00 committed by GitHub
parent cdc3c41001
commit 95e5a20713
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -180,6 +180,11 @@ function PingBarChart({ pingInfo }: { pingInfo: PingRollupInfo }) {
if (val.submitted === 0) {
return "#08a274";
}
if (val.loss >= 0.25 && val.loss <= 0.5) {
return "#FFA500";
}
return val.loss > 0.5 ? "#f00" : "#00D192";
};
const chartData: Chart.ChartData = {