Skip to content

Commit

Permalink
鈾伙笍 Use red badges for response time 0ms
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Feb 24, 2021
1 parent a875085 commit 9b0a1e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ const getUptimeColor = (uptime: number) =>
? "orange"
: "red";
const getResponseTimeColor = (responseTime: number) =>
responseTime < 200
responseTime === 0
? "red"
: responseTime < 200
? "brightgreen"
: responseTime < 400
? "green"
Expand Down

0 comments on commit 9b0a1e1

Please sign in to comment.