Skip to content

Commit

Permalink
replay: fix wrong delay message with timescaling
Browse files Browse the repository at this point in the history
  • Loading branch information
markuskont committed Jan 7, 2021
1 parent e69066a commit 7b203d6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/replay/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,11 @@ func replayReadWorker(
}

if !disableWait && pcapfile.Delay > 0 {
logrus.Infof("file %s start is future, will wait for %s",
pcapfile.Path, pcapfile.Delay)
logrus.Infof(
"file %s start is future, will wait for %s",
pcapfile.Path,
time.Duration(int64(float64(pcapfile.Delay)/modifier)),
)
dur := float64(pcapfile.Delay) / modifier
time.Sleep(time.Duration(dur))
}
Expand Down

0 comments on commit 7b203d6

Please sign in to comment.