aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus@rgdd.se>2023-03-26 11:55:43 +0200
committerRasmus Dahlberg <rasmus@rgdd.se>2023-03-26 11:55:43 +0200
commitf405a55ab7ab67599361156495628356864acef5 (patch)
treeb4bb96ed1d8611b24226435daebf8191fd2c6180
parent46aae951cd61d459c7e67fd835fdcd4a707eeefc (diff)
Add current line to periodic updates
-rw-r--r--main.go3
1 files changed, 2 insertions, 1 deletions
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