From f1c39bec3ab11783f7c54da3dec4b8b0a4028faf Mon Sep 17 00:00:00 2001 From: Alexandre ZANNI <16578570+noraj@users.noreply.github.com> Date: Tue, 23 Feb 2021 12:49:54 +0100 Subject: [PATCH] replace badchar with a space (#390) * replace badchar with a space * add noraj to contribs * add changelog * remove PR ref & shoutouts Co-authored-by: Joona Hoikkala * re-order Co-authored-by: Joona Hoikkala --- CHANGELOG.md | 1 + CONTRIBUTORS.md | 1 + pkg/output/stdout.go | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 446178f..2a9d373 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ - New - All output file formats now include the `Content-Type`. - Changed + - Fix a badchar in progress output - v1.2.1 - Changed diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 8d58d9d..2bdd441 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -23,6 +23,7 @@ * [Kiblyn11](https://github.com/Kiblyn11) * [lc](https://github.com/lc) * [nnwakelam](https://twitter.com/nnwakelam) +* [noraj](https://pwn.by/noraj) * [oh6hay](https://github.com/oh6hay) * [putsi](https://github.com/putsi) * [SakiiR](https://github.com/SakiiR) diff --git a/pkg/output/stdout.go b/pkg/output/stdout.go index 870ab19..ef2d583 100644 --- a/pkg/output/stdout.go +++ b/pkg/output/stdout.go @@ -165,7 +165,7 @@ func (s *Stdoutput) Progress(status ffuf.Progress) { dur -= mins * time.Minute secs := dur / time.Second - fmt.Fprintf(os.Stderr, "%s:: Progress: [%d/%d] :: Job [%d/%d] :: %d req/sec :: Duration: [%d:%02d:%02d] :: Errors: %d ::", TERMINAL_CLEAR_LINE, status.ReqCount, status.ReqTotal, status.QueuePos, status.QueueTotal, reqRate, hours, mins, secs, status.ErrorCount) + fmt.Fprintf(os.Stderr, "%s:: Progress: [%d/%d] :: Job [%d/%d] :: %d req/sec :: Duration: [%d:%02d:%02d] :: Errors: %d ::", TERMINAL_CLEAR_LINE, status.ReqCount, status.ReqTotal, status.QueuePos, status.QueueTotal, reqRate, hours, mins, secs, status.ErrorCount) } func (s *Stdoutput) Info(infostring string) {