Skip to content
This repository was archived by the owner on Jan 20, 2020. It is now read-only.

Consumed calculation fix and bug fix when decreases depleted. #4

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

mlilius
Copy link

@mlilius mlilius commented Jun 8, 2016

I found a couple of problems when trying to use this. First the consumed calculations were not correct. They need to be sum and then divided by the number of seconds in the time window to get consumed/second.

I also found that if you run out of available decreases it would no longer allow increases.

BTW, thank you for this. It is exactly what I was looking for. Nice clean code too.

@mlilius
Copy link
Author

mlilius commented Jun 8, 2016

I added a maximum read/write setting.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant