From ba927efc119e0a0a8668438e4a27d69db9b89411 Mon Sep 17 00:00:00 2001 From: nakabonne Date: Tue, 6 Oct 2020 21:47:55 +0900 Subject: [PATCH] Reduce the width of Others widget --- gui/gui.go | 10 +++++----- main.go | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gui/gui.go b/gui/gui.go index 3cbb7b8..1a71552 100644 --- a/gui/gui.go +++ b/gui/gui.go @@ -69,14 +69,14 @@ func run(t *termbox.Terminal, r runner, targetURL string, opts *attacker.Options func gridLayout(w *widgets) ([]container.Option, error) { raw1 := grid.RowHeightPerc(70, grid.Widget(w.latencyChart, container.Border(linestyle.Light), container.BorderTitle("Latency (ms)"))) raw2 := grid.RowHeightPerc(25, - grid.ColWidthPerc(15, grid.Widget(w.paramsText, container.Border(linestyle.Light), container.BorderTitle("Parameters"))), - grid.ColWidthPerc(15, grid.Widget(w.latenciesText, container.Border(linestyle.Light), container.BorderTitle("Latencies"))), - grid.ColWidthPerc(15, grid.Widget(w.bytesText, container.Border(linestyle.Light), container.BorderTitle("Bytes"))), - grid.ColWidthPerc(15, + grid.ColWidthPerc(20, grid.Widget(w.paramsText, container.Border(linestyle.Light), container.BorderTitle("Parameters"))), + grid.ColWidthPerc(20, grid.Widget(w.latenciesText, container.Border(linestyle.Light), container.BorderTitle("Latencies"))), + grid.ColWidthPerc(20, grid.Widget(w.bytesText, container.Border(linestyle.Light), container.BorderTitle("Bytes"))), + grid.ColWidthPerc(20, grid.RowHeightPerc(50, grid.Widget(w.statusCodesText, container.Border(linestyle.Light), container.BorderTitle("Status Codes"))), grid.RowHeightPerc(50, grid.Widget(w.errorsText, container.Border(linestyle.Light), container.BorderTitle("Errors"))), ), - grid.ColWidthPerc(40, grid.Widget(w.othersText, container.Border(linestyle.Light), container.BorderTitle("Others"))), + grid.ColWidthPerc(20, grid.Widget(w.othersText, container.Border(linestyle.Light), container.BorderTitle("Others"))), ) raw3 := grid.RowHeightPerc(4, grid.ColWidthPerc(60, grid.Widget(w.progressGauge, container.Border(linestyle.Light), container.BorderTitle("Progress"))), diff --git a/main.go b/main.go index d43a1d5..30d41ce 100644 --- a/main.go +++ b/main.go @@ -71,7 +71,7 @@ func parseFlags(stdout, stderr io.Writer) (*cli, error) { flagSet.Int64VarP(&c.maxBody, "max-body", "M", attacker.DefaultMaxBody, "Max bytes to capture from response bodies. Give -1 for no limit.") flagSet.BoolVarP(&c.version, "version", "v", false, "Print the current version.") flagSet.BoolVar(&c.debug, "debug", false, "Run in debug mode.") - flagSet.BoolVarP(&c.keepAlive, "keepalive", "k", true, "Use persistent connections.") + flagSet.BoolVarP(&c.keepAlive, "keepalive", "k", true, "Use HTTP persistent connection.") flagSet.Uint64VarP(&c.workers, "workers", "w", attacker.DefaultWorkers, "Amount of initial workers to spawn.") flagSet.Uint64VarP(&c.maxWorkers, "max-workers", "W", attacker.DefaultMaxWorkers, "Amount of maximum workers to spawn.") flagSet.Usage = c.usage