Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/add example feature to custom #66

Merged
merged 4 commits into from
Oct 22, 2024

Conversation

matissecallewaert
Copy link
Collaborator

Added an example feature to the custom flow that represents the total inter arrival between the first 10 packets in both ingress and egress direction.

Also formatted the duration print to 4 numbers behind the comma.

@matissecallewaert matissecallewaert added the enhancement New feature or request label Oct 21, 2024
@matissecallewaert matissecallewaert self-assigned this Oct 21, 2024
@@ -39,36 +56,41 @@ impl Flow for CustomFlow {
ts_date,
),
// Add here the initialization of the additional features.
inter_arrival_time_total: 0.0,
last_timestamp: Some(ts_date),
Copy link
Member

Choose a reason for hiding this comment

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

Can we not reuse last timestamp of BasicFlow?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Jup indeed, I will fix that!

@mielverkerken mielverkerken merged commit 70df1b2 into main Oct 22, 2024
2 checks passed
@mielverkerken mielverkerken deleted the feature/add-example-feature-to-custom branch October 22, 2024 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants