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

problem with allowed days detection in ceph-gentle-reweight script #14

Open
casparsmit opened this issue Jan 16, 2019 · 2 comments
Open

Comments

@casparsmit
Copy link
Contributor

There's a bug in the "in_timeframe" routine in the ceph-gentle-reweight script.

If the current_day is not in allowed_days but the current_time does fall between start_time and end_time it still allows the script to run. It shouldn't because the current_day is not allowed.

@johnavp1989
Copy link
Contributor

This is the behavior I intended. allowed_days allows tells the script to reweight non-stop on those days regardless of whether there is a time range specified. My use case was that I wanted to allow reweighting only at nights and on weekends. See #7

@casparsmit
Copy link
Contributor Author

Thank you for clarifying John!

I have the exact opposite use case, only run on weekdays (monday-friday) from 9:00 am until 16:00 pm and DON'T run in the weekend.

Is that possible with the current implementation? I don't see how.

Kind regards,
Caspar

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

No branches or pull requests

2 participants