diff options
author | Rasmus Dahlberg <rasmus@rgdd.se> | 2023-03-26 11:55:43 +0200 |
---|---|---|
committer | Rasmus Dahlberg <rasmus@rgdd.se> | 2023-03-26 11:55:43 +0200 |
commit | f405a55ab7ab67599361156495628356864acef5 (patch) | |
tree | b4bb96ed1d8611b24226435daebf8191fd2c6180 | |
parent | 46aae951cd61d459c7e67fd835fdcd4a707eeefc (diff) |
Add current line to periodic updates
-rw-r--r-- | main.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -245,9 +245,10 @@ func workGenerator(ctx context.Context, opts options.Options, fp *os.File, quest return nextLine, false case <-ticker.C: now := time.Now().Unix() - log.Printf("INFO: currently %.1f sites/s, %.1f sites/s since start\n", + log.Printf("INFO: currently %.1f sites/s, %.1f sites/s since start, at line %d\n", float64(nextLine-latestCount)/float64(now-latestTime), float64(nextLine-opts.NextLine)/float64(now-startTime), + nextLine, ) latestCount = nextLine |