Skip to content

Conversation

@vyavdoshenko
Copy link
Contributor

Introduces CLI flag -skip-time-min (int) to skip the first N minutes of recorded traffic.

var fClientBuffer = flag.Int("buffer", 100, "How many records to buffer per client")
var fPace = flag.Bool("pace", true, "whether to pace the traffic according to the original timings.false - to pace as fast as possible")
var fSkip = flag.Uint("skip", 0, "skip N records")
var fSkipTimeMin = flag.Int("skip-time-min", 0, "skip records in the first N minutes of the recording")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think minutes is too coarse. lets do this in seconds.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my experience, minutes is the best choice.
I decided to add this option when I had to wait for 120 minutes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it's better to add two options, in seconds and in minutes.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can always convert minutes to seconds, not the other way round. Two flags can be confusing

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@vyavdoshenko vyavdoshenko requested a review from romange June 12, 2025 19:36
@vyavdoshenko vyavdoshenko requested a review from dranikpg June 13, 2025 05:47
@vyavdoshenko vyavdoshenko merged commit 2157347 into main Jun 14, 2025
10 checks passed
@vyavdoshenko vyavdoshenko deleted the bobik/replay_tool_skip_n_mins branch June 14, 2025 09:35
@vyavdoshenko vyavdoshenko self-assigned this Jun 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants