From f405a55ab7ab67599361156495628356864acef5 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Sun, 26 Mar 2023 11:55:43 +0200 Subject: Add current line to periodic updates --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 52ea628..b726dd1 100644 --- a/main.go +++ b/main.go @@ -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 -- cgit v1.2.3