diff options
author | Rasmus Dahlberg <rasmus@rgdd.se> | 2023-04-02 22:18:27 +0200 |
---|---|---|
committer | Rasmus Dahlberg <rasmus@rgdd.se> | 2023-04-02 22:18:27 +0200 |
commit | e0bb1553d51e8791b3ec1a7915f26cc4cffbcbb4 (patch) | |
tree | 94c3095c4456a513516df0a91ff60a4348fd756a | |
parent | f6c1eb7e58a5fc70e720311482f8147b791e6104 (diff) |
Minor edit
-rw-r--r-- | main.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) |