Skip to content

Commit

Permalink
Change the color scheme of percentile labels
Browse files Browse the repository at this point in the history
  • Loading branch information
nakabonne committed Oct 18, 2020
1 parent c1e4be6 commit 9fc2691
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gui/gui.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func gridLayout(w *widgets) (*gridOpts, error) {
container.Border(linestyle.Light),
container.ID(chartID),
container.BorderTitle("Percentiles (ms)"),
}, w.p99Legend.text, w.p90Legend.text, w.p95Legend.text, w.p50Legend.text)
}, w.p99Legend.text, w.p95Legend.text, w.p90Legend.text, w.p50Legend.text)
if err != nil {
return nil, err
}
Expand Down
8 changes: 4 additions & 4 deletions gui/widgets.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,22 +80,22 @@ func newWidgets(targetURL string, opts *attacker.Options) (*widgets, error) {
return nil, err
}

p99Color := cell.FgColor(cell.ColorNumber(104))
p99Color := cell.FgColor(cell.ColorNumber(87))
p99Text, err := newText("p99", text.WriteCellOpts(p99Color))
if err != nil {
return nil, err
}
p95Color := cell.FgColor(cell.ColorNumber(89))
p95Color := cell.FgColor(cell.ColorGreen)
p95Text, err := newText("p95", text.WriteCellOpts(p95Color))
if err != nil {
return nil, err
}
p90Color := cell.FgColor(cell.ColorNumber(88))
p90Color := cell.FgColor(cell.ColorYellow)
p90Text, err := newText("p90", text.WriteCellOpts(p90Color))
if err != nil {
return nil, err
}
p50Color := cell.FgColor(cell.ColorNumber(87))
p50Color := cell.FgColor(cell.ColorMagenta)
p50Text, err := newText("p50", text.WriteCellOpts(p50Color))
if err != nil {
return nil, err
Expand Down

0 comments on commit 9fc2691

Please sign in to comment.