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

fix --stats-interval flag for values >= 999 (ms) #1308

Merged
merged 3 commits into from
Jul 8, 2020
Merged

fix --stats-interval flag for values >= 999 (ms) #1308

merged 3 commits into from
Jul 8, 2020

Conversation

leodido
Copy link
Member

@leodido leodido commented Jul 8, 2020

What type of PR is this?

/kind bug

Any specific area of the project related to this PR?

NONE

What this PR does / why we need it:

Renames --stats_interval to --stats-interval so to match the style of other long flags of the Falco CLI.

Fixes its behavior for values greater than 999 milliseconds.

Which issue(s) this PR fixes:

Fixes #1280

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

BREAKING CHANGE: --stats_interval is now --stats-interval
fix: --stats-interval correctly accepts values >= 999 (ms)

leodido added 2 commits July 8, 2020 09:01
To match the style of other long flags of the Falco CLI.

Signed-off-by: Leonardo Di Donato <[email protected]>
@leodido
Copy link
Member Author

leodido commented Jul 8, 2020

/milestone 0.24.0

@poiana poiana added this to the 0.24.0 milestone Jul 8, 2020
@poiana poiana added the size/S label Jul 8, 2020
Copy link
Member

@leogr leogr left a comment

Choose a reason for hiding this comment

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

LGTM,

Note that I found it was not working properly because of a missing renaming, so I added it by 07501a0

(It was always setting the timer to the default value since the --stats-interval's value was not used)

@poiana
Copy link
Contributor

poiana commented Jul 8, 2020

LGTM label has been added.

Git tree hash: 599d4fc2edd521b1cecdaedeefa66e3bc0446f09

@poiana
Copy link
Contributor

poiana commented Jul 8, 2020

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fntlnz, leogr

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@fntlnz
Copy link
Contributor

fntlnz commented Jul 8, 2020

Thanks!

@poiana poiana merged commit de14744 into master Jul 8, 2020
@poiana poiana deleted the fix/1280 branch July 8, 2020 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failure when configuring stats
4 participants