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

increase_reads_in_percent calculations are incorrect. #40

alxmrtn opened this Issue May 13, 2013 · 1 comment


None yet
2 participants

alxmrtn commented May 13, 2013

On line 46 in in the function increase_reads_in_percent, you have

increase = int(
updated_provisioning = current_provisioning + increase

it should just be

increase = int(float(current_provisioning)*(float(percent)/100))
updated_provisioning = current_provisioning + increase

or alternatively

updated_provisioning = int(float(current_provisioning)*(float(percent)/100+1))

@ghost ghost assigned sebdah May 14, 2013

sebdah added a commit that referenced this issue May 14, 2013

@sebdah sebdah closed this May 14, 2013


This comment has been minimized.


sebdah commented May 14, 2013

Thanks for the feedback @alxmrtn. I have released Dynamic DynamoDB version 1.3.2 to PyPI containing this fix. Just do a pip install -U dynamic-dynamodb to upgrade to the latest release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment