Skip to content

Commit

Permalink
Better RTT display
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Jan 24, 2024
1 parent 82de6a9 commit 9c1b6cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion webui/debug.ego
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func ego_debug(w io.Writer, req *http.Request) {
<%= t(req, "Redis RTT") %>
<a href="https://github.com/contribsys/faktory/wiki/Storage#rtt"><span class="info-circle" title="Click to learn more about RTT">?</span></a>
</th>
<td class="bg-<%= category_for_rtt(rtt) %>">
<td class="fw-bold text-<%= category_for_rtt(rtt) %>">
<%= rtt %> µs
</td>
</tr>
Expand Down
4 changes: 2 additions & 2 deletions webui/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,9 @@ func category_for_rtt(lat float64) string {
if lat == 0 {
return "danger"
} else if lat < 1000 {
return "info"
return "success"
} else if lat < 10000 {
return "warning"
return "primary"
} else {
return "danger"
}
Expand Down

0 comments on commit 9c1b6cf

Please sign in to comment.