aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.go b/main.go
index 93f5348..98fd446 100644
--- a/main.go
+++ b/main.go
@@ -238,6 +238,7 @@ func generatorMetrics(ctx context.Context, opts options.Options, nextLine *line.
case <-metrics.C:
currLine := nextLine.Num()
now := time.Now().Unix()
+
str := fmt.Sprintf(" Current rate: %.1f sites/s\n", float64(currLine-prevLine)/float64(now-prevTime))
str += fmt.Sprintf(" Average rate: %.1f sites/s\n", float64(currLine)/float64(now-startTime))
str += fmt.Sprintf(" Next line: %d", currLine)